7

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).

Dorian
  • 22,759
  • 8
  • 120
  • 116

2 Answers2

6

Showdown? -

The http://attacklab.net/showdown/ site is defunct.

Showdown is now available on git, here: https://github.com/coreyti/showdown

blueberryfields
  • 45,910
  • 28
  • 89
  • 168
Māris Kiseļovs
  • 16,957
  • 5
  • 41
  • 48
  • 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 Jul 31 '10 at 17:23
  • @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 Jul 31 '10 at 17:25
  • @Dorian: No hard feelings ;) You're welcome. – Felix Kling Jul 31 '10 at 17:31
  • 2
    This is a dead link. Is the project no longer available? – typeoneerror Mar 26 '11 at 15:36
3

markdown-js is awesome.

html = markdown.toHTML(someMarkdownText);
Mauricio Pasquier Juan
  • 2,265
  • 3
  • 27
  • 39