Is there any good Markdown Javascript library or control?

webmat picture webmat · Sep 25, 2008 · Viewed 31.1k times · Source

I want to build a site where the user can enter text and format it in Markdown. The reason I'd like a Javascript solution is because I want to display a live preview, just like on StackOverflow.

My site is not targeted at developers, however, so an editor control would be ideal.

I gather that on StackOverflow, the WMD editor is being used.

A quick search on Google also turns up Showdown library, which I think is actually being used by WMD.

Are there any other options? Are WMD/Showdown great tools already? What have been your experiences with the different options?

Answer

Jeff Atwood picture Jeff Atwood · Sep 25, 2008

We've been pretty happy with WMD. There are a few niggling bugs in it, however. Nothing major, but I would love if John Fraser (the author) made the code open source so we can fix some of them. He's promised to do so but other real life projects are getting in the way.

I do follow up with John every week. I'll post on the blog once the WMD source is finally available. Haven't been able to contact John Fraser in over a year now.

We have open sourced both the JavaScript Markdown library

http://code.google.com/p/pagedown/

and the server-side C# Markdown library

http://code.google.com/p/markdownsharp/