Build HTML or PDF versions of the CommonMark spec
masterYou can generate documentation versions of the spec from the source spec.txt using make.
Prerequisites
- Lua and LuaRocks: Required for both formats.
- lcmark: A Lua rock required for building. Install it via:
luarocks install lcmark - XeLaTeX: Required specifically for building the PDF version.
Build Commands
- To build HTML:
make spec.html - To build PDF:
make spec.pdf
luarocks install lcmark
make spec.html
make spec.pdf