Alan Gutierrez

Alan Gutierrez blogs on software, social networks, and himself.

Subscrive Via RSS Feed
« Allowing Thoughts to Submerge What Is the Difference Between a Mutator and a Snapshot in Memento? Is It Significant? »

RedCloth Plugin for WordPress

Red by Ard Hesselink.

Hacked Adam Gessaman’s Textile 2 Plugin to shell out to Why’s RedCloth / Textile & Markdown for Ruby.

Why? Because, I spend most of my day picking through my cut and paste, removing texturized do-dad’s like that single quote just went by and so called “double” quotes, which Textile will turn from " to matching quotes, except that if they are already there, cut and paste form on of the many word documents that Melanie Ehrlich likes to send me, then PHP Texile turns them into poison characters that leave little question marks in little diamonds, while RedCloth passes them right through.

Going from a 37Signals Writeboard or Backpack will bring these little dudes over, and then my posts are littered with funky characters. My dear, beloved users wonder what sort of web master I am. Am a I good or am I evil?

And, yes, WordPress does something wicked to XML example code. I exemplify XML to frequently to contenence this outrage. It will not do.

I updated the control panel, so you can set the path to RedCloth, and return to the strange world of PHP Textile using the radio button options. You can have this hacked plugin, but I don’t want to hear about how sloppy my additions to the code. It is as much PHP as I can stand for 2007 to have done this much.

(2) Comments

comments feed

  1. adam says:

    Nice hack. :)

    I’ve been meaning, in the spirit of shells, to allow the interpreter to be exchanged. Would you mind if I used your code as the basis of the RedCloth interpreter config?

    Comment by adam on May 7th, 2007 at 8:21 am #
  2. Alan Gutierrez says:

    Adam

    How about this? It’s available to you under whatever license you used to make it available to me.

    Comment by Alan Gutierrez on May 7th, 2007 at 2:34 pm #

Leave a Reply