Cleartext
This is a Haskell library for parsing a plaintext document format very much
inspired by John Gruber's
Markdown.
The feature set started out as minimal but has since grown to include:
- Arbitrarily nested sections with headings
- Paragraphs, including
formal
paragraphs with headings
- Hyperlinks
- Images
- The usual inline markup (emphasis, boldface, …)
- Automatic fancification of ellipsis (…), dashes (—) and quotes ("")
- Code blocks
- Blockquotes
- Floating bodies with captions; text can flow around
- Tables
- Cross References
- Footnotes
Note:
Tables, cross references and footnotes were put in for the ODT
generator and have as of this writing (June 2010) not been implemented for HTML
output. It's only a matter of finding the time though. Donations accepted. ;)
The code is available in a darcs repository at
http://code.khjk.org/cleartext/.