LuaRocks.org had a security incident in September 2026. Read the incident report.

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.31.1-11 year ago252 downloads
0.30.2-14 years ago377 downloads
0.29.0-56 years ago392 downloads
0.29.0-46 years ago59 downloads
0.29.0-36 years ago48 downloads
0.29.0-17 years ago125 downloads
0.28.3-18 years ago114 downloads
0.27.0-19 years ago101 downloads
0.26.0-110 years ago106 downloads
0.25.2-110 years ago147 downloads
0.24.0-110 years ago78 downloads
0.23.0-310 years ago96 downloads

Dependencies

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

Labels

Manifests