markdown - 

A markdown parser for Nit.

Markdown documentation can be found in This parser is inspired by the famous TxtMark for Java (


nitmd can be used as a standalone tool:

$ nitmd

Or you can use it programmatically by importing the markdown module.

Differences with Markdown specification

This parser passes all tests inside execpt of two:

  1. Images.text: fails because this parser doesn't produce empty 'title' image attributes.
  2. Literal quotes in titles.text: because markdown accepts unescaped quotes in titles and this is wrong.


The NitUnit test suite can be found in test_markdown.nit.

Minimalists tests are prefixed with process_*. All tests from daringfireball are prefixed with process_daring*.

Run the test suite:

$ nitunit lib/markdown/markdown.nit -t lib/markdown/test_markdown.nit