lcmark

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.

Versions

0.28.3-1130 days ago14 downloads
0.27.0-11 year ago61 downloads
0.26.0-11 year ago66 downloads
0.25.2-12 years ago29 downloads
0.24.0-12 years ago38 downloads
0.23.0-32 years ago31 downloads

Dependencies

cmark >= 0.28.3
LPeg >= 0.12
lua >= 5.2
optparse >= 1.0.1
yaml >= 1.1

Labels

Manifests