views:

61

answers:

2

Does anyone know a markdown parser in Javascript ?

PS : Actually, I do this with request to server to parse it, but a client side parser would be better :) .

Edit : If there is no one, I will use HTML (with WYSIWYG editor).

+2  A: 

Showdown? - http://attacklab.net/showdown/

Māris Kiseļovs
No, I would like use it in my website. I would like a javascript function "markdown(text)" whitch return the parsed text. (But Thanks for the answer, I will read his source code).
Dorian
@Dorian: It is meant to download the source code and use it in your own site: *Showdown is a JavaScript port of the original Perl version of Markdown. You can get the full source code by clicking on the version number at the bottom of the page.* And in the corner: *Download Showdown v0.9*
Felix Kling
Oops, yes, thanks, sorry.
Dorian
@Dorian: No hard feelings ;) You're welcome.
Felix Kling
A: 

http://stackoverflow.com/questions/605434/how-would-you-go-about-parsing-markdown

elmac
Like I said, I can parse Markdown (with Bluecloth (in my Ruby on Rails application)).
Dorian