Java implementation of Markdown
Pete Bevin
pbevin at gmail.com
Fri Dec 31 21:17:00 EST 2004
I have a working Java version of Markdown, complete with Dingus
rip-off: <http://markdownj.petebevin.com/>
Source code is at <http://markdownj.petebevin.com/MarkdownJ.zip>
Notes:
* I used my own test cases instead of MarkdownTest (because I haven't
been following the mailing list very closely).
* The implementation is basically a translation of the Perl version.
* John Gruber is a freaking genius. The regular expressions are very
well crafted, and I know I haven't done them justice.
* Usage is:
MarkdownProcessor mp = new MarkdownProcessor();
String html = mp.markdown("*italic* **bold**\n_italic_ __bold__");
* Feel free to hack on the code. Some of it is still pretty ugly.
Pete.
More information about the Markdown-Discuss
mailing list