title: Javascript to convert Markdown/Textile to HTML (and, ideally, back to Markdown/Textile)
body: <p>There are several good Javascript <strong>editors</strong> for Markdown / Textile (e.g.: <a href="http://attacklab.net/showdown/" rel="noreferrer">http://attacklab.net/showdown/</a>, 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.</p>
  
  <p>What's the best way to do this? (Ideally it would be jQuery-friendly -- e.g., <code>$("#editor").markdown_to_html()</code>)</p>
  
  <p><strong>Edit:</strong> Another way to put it is that I'm looking for a Javascript implementation of Rails' <code>textilize()</code> and <code>markdown()</code> text helpers</p>