The cmark package is a Tcl wrapper for the CommonMark text formatting syntax (aka Markdown) library cmark-gfm which includes Github extensions and can output HTML, Latex, manpage and plain text.
Source code is at [L1 ].