A command-line CommonMark converter with flexible features, and a lua module that exposes these features.

$ luarocks install lcmark

lcmark does what the cmark program does,
with the following enhancements:
(1) Support for YAML metadata at the top of the document.
The metadata is parsed as CommonMark and returned in
a table (dictionary) that will set template variables.
(2) Support for templates, which add headers
and footers around the body of the document, and can
include variables defined in the metadata.
(3) Support for filters, which allow the document to be
transformed between parsing and rendering, making possible
a large number of customizations.


0.30.2-1317 days ago181 downloads
0.29.0-53 years ago358 downloads
0.29.0-43 years ago26 downloads
0.29.0-33 years ago15 downloads
0.29.0-14 years ago101 downloads
0.28.3-15 years ago77 downloads
0.27.0-16 years ago77 downloads
0.26.0-16 years ago82 downloads
0.25.2-17 years ago63 downloads
0.24.0-17 years ago54 downloads
0.23.0-37 years ago52 downloads


cmark >= 0.30.2
LPeg >= 0.12
lua >= 5.1
optparse >= 1.4