Curtis Hamilton 6b17f81e78 Rebased with trunk to fix inadvertent revisions 3 недель назад
..
demo b3e2705226 Update repository 1 месяц назад
src 6b17f81e78 Rebased with trunk to fix inadvertent revisions 3 недель назад
tests 404d27b667 * Correct nested list processing 1 месяц назад
tools 247d777d5e * Initial markdown parser 4 месяцев назад
Makefile 247d777d5e * Initial markdown parser 4 месяцев назад
README.md 247d777d5e * Initial markdown parser 4 месяцев назад
fpmake.pp 1328e490f9 * Add markdown.processors 1 месяц назад

README.md

This directory contains an extensible markdown parser.

Extensible means 2 things:

  • You can add new block types by simply registering a processor for it. You can also override a block type's parser to provide custom behaviour.

  • You can render the markdown to whatever format you want. By default, rendering to html and fpdoc are supported. (LaTeX still planned)

Both renderers are demoed in the demo directory.

While the commonmark spec has been used in the implementation, the parser makes no pretence at being fully commonmark compliant.

In particular, it should parse whatever commonmark defines, but the html output may not be 100% the same, as the commonmark spec is overly pedantic where it concerns whitespace usage in the output. (although patches to improve the output are welcome)