[web-devel] Announce: markdown 0.1
fiddlosopher at gmail.com
Mon Jul 16 23:48:59 CEST 2012
Have you tested this using the markdown test suite (and preferably also
the PHP markdown test suite)? There are so many complexities in parsing
markdown correctly that aren't obvious at first. (I say this from
I can see from a few cursory tests that the library is FAR from being
an accurate and complete markdown renderer.
-------------- nested lists
% ./markdown # <- a shell around Text.Markdown with default options
% Markdown.pl # <- original markdown perl script
-------------- inline code
``` `` ```
``` `` ```
-------------- reference-style links
Some advice: If you want a fast, non-GPL markdown parser, use
(which wraps the library used by github).
+++ Michael Snoyman [Jul 15 12 17:28 ]:
> Hi all,
> I've just released the first version of the markdown package to
> Hackage. I've been using this package for a while already for
> rendering blog posts on yesodweb.com. I put in some time today
> cleaning it up and fixing some features, and feel it's now ready for
> an experimental release.
> The distinguishing features of this library versus other options are:
> * Uses blaze-html types natively, making it easy to use with many
> existing libraries (Hamlet included).
> * Permissive license (BSD3).
> * attoparsec and conduit used for parsing.
> * Built in XSS protection (though you can disable it if desired).
> The library also has a very thorough test suite, but I'd be happy to
> accept more test cases. Please report issues/send pull requests on
>  http://hackage.haskell.org/package/markdown
>  https://github.com/snoyberg/markdown
> web-devel mailing list
> web-devel at haskell.org
More information about the web-devel