)
and wanted to see it available on GitHub.
All credit and praise for authoring this library should go to John Fraser.
Oh, and John Gruber of course.
That said, I have recently see some GitHub forking activity and a pull
request. As such, I will endeavor to ordain myself as a maintainer of
Showdown, at least as it exists on GitHub.
Apologies for any confusion or perceived misinformation.
Cheers,
Corey
Showdown -- A JavaScript port of Markdown
=========================================
Showdown Copyright (c) 2007 John Fraser.
Original Markdown Copyright (c) 2004-2005 John Gruber
Redistributable under a BSD-style open source license.
See license.txt for more information.
Quick Example
-------------
``` js
var Showdown = require('showdown').Showdown
var converter = new Showdown().converter()
converter.makeHtml('#hello markdown!')
//
unindented == broken
* Showdown doesn't support the markdown="1" attribute:
Markdown does *not* work in here.
This is half laziness on my part and half stubbornness.
Markdown is smart enough to process the contents of span-
level tags without screwing things up; shouldn't it be
able to do the same inside block elements? Let's find a
way to make markdown="1" the default.
* You can only nest square brackets in link titles to a
depth of two levels:
[[fine]](http://www.attacklab.net/)
[[[broken]]](http://www.attacklab.net/)
If you need more, you can escape them with backslashes.
* When sublists have paragraphs, Showdown produces equivalent
HTML with a slightly different arrangement of newlines:
+ item
- subitem
The HTML has a superfluous newline before this
paragraph.
- subitem
The HTML here is unchanged.
- subitem
The HTML is missing a newline after this
list subitem.
* Markdown.pl creates empty title attributes for
inline-style images:
Here's an empty title on an inline-style
![image](http://w3.org/Icons/valid-xhtml10).
I tried to replicate this to clean up my diffs during
testing, but I went too far: now Showdown also makes
empty titles for reference-style images:
Showdown makes an empty title for
reference-style ![images][] too.
[images]: http://w3.org/Icons/valid-xhtml10
* With crazy input, Markdown will mistakenly put
`` or `` tags in URLs:
improbable URL
Showdown won't. But still, don't do that.
Credits
---------------------------
* Origins
* [John Fraser](http://http://attacklab.net/):
Author of Showdown
* [John Gruber](http://daringfireball.net/projects/markdown/):
Author of Markdown
* Maintenance
* [Corey Innis](http://github.com/coreyti):
GitHub project maintainer
* [Remy Sharp](http://remysharp.com/):
CommonJS-compatibility and more
* [Roger Braun](https://github.com/rogerbraun):
Github-style code blocks
* [Dominic Tarr](https://github.com/dominictarr):
Documentation
* [Cat Chen](https://github.com/CatChen):
Export fix