Javascript to convert Markdown/Textile to HTML (and, ideally, back to Markdown/Textile)

Posted by Horace Loeb on Stack Overflow See other posts from Stack Overflow or by Horace Loeb
Published on 2009-08-23T21:46:18Z Indexed on 2010/05/02 18:18 UTC
Read the original article Hit count: 604

Filed under:
|
|
|

There are several good Javascript editors for Markdown / Textile (e.g.: http://attacklab.net/showdown/, the one I'm using right now), but all I need is a Javascript function that converts a string from Markdown / Textile -> HTML and back.

What's the best way to do this? (Ideally it would be jQuery-friendly -- e.g., $("#editor").markdown_to_html())

Edit: Another way to put it is that I'm looking for a Javascript implementation of Rails' textilize() and markdown() text helpers

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about markdown