Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any good Markdown Javascript library or control? [closed]

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?

like image 364
webmat Avatar asked Sep 25 '08 16:09

webmat


People also ask

Can javascript be used in markdown?

The script annotation to the js code block thus allows developers to load web components and use it in a markdown source.

Why use Markdown?

In a brief, Markdown makes it easier to format text for web pages because its tags are simpler than HTML and automatically convert to HTML. This means you don't need to know HTML to write something for a web page because Markdown automatically converts your tags to HTML.

How do I edit a markdown file?

How to edit a README.md file: Open the project editor and make sure that the README.md file is selected in the file view on the left. At the top of the editing pane, click the EDIT MARKDOWN button to reveal edit mode for the file. Now you can start typing directly in the file.


1 Answers

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/

like image 158
Jeff Atwood Avatar answered Sep 28 '22 17:09

Jeff Atwood