root / hscreole

Creole syntax parser

This module provides wiki syntax parser which is maybe compatible with Creole 1.0.
The grammer of Creole 1.0 is can be seen from following URL.

Download

You might suspect why only the source code is distributed,
but it is only because of the troublesome.

Usage

import Creole
main = print $ parseHtml "= heading\nparagraph.\n\n* list\n* list\n\nhttp://example.org"

and you will get following string.

<h1>heading</h1>
<p>paragraph.</p>
<ul><li>list</li>
<li>list</li>
</ul>
<p><a href="http://example.org">http://example.org</a></p>

More Information

Read the source code. But it might be difficult to read the source code because this is the first Haskell software of me.

Author
Chikara Kuwata
License
MIT