mmd is a miniature markdown parsing “library” consisting of a single C source
file and accompanying header file.
mmd mostly conforms to the CommonMark
version of markdown syntax with the following exceptions:
Embedded HTML markup and entities are explicitly not supported or allowed;
the reason for this is to better support different kinds of output from the
markdown “source”, including XHTML, man, and
Link reference definitions are not supported; these probably will be supported in a future version of the parsing code but will need explicit support in any output code to resolve the references.
Link titles are silently ignored.
Thematic breaks using a mix of whitespace and the separator character are not supported (“* * * *”, “– – – –”, etc.); these could conceivably be added but did not seem particularly important.
mmd supports a couple (otherwise undocumented)
Metadata as used by Jekyll and other web markdown solutions.
”@” links which resolve to headings within the file.
I’m providing this as open source under the Apache License Version 2.0 with exceptions for use with GPL2/LGPL2 applications which allows you do pretty much do whatever you like with it. Please do provide feedback and report bugs to the Github project page so that everyone can benefit.