lk/vision/lowdown.md

606 B

title tags
Markdown to PDF
Documentation
Markdown
PDF
Vision

Turn a markdown file into a pdf:

lowdown -stms "$FILE".md | pdfroff -itk -mspdf > "$FILE".pdf

Example: put this Makefile in a directory, rename it Makefile, then do:

make example
make

To give the document a title, put that title in the metadata:

sed -i "1 i---" "$FILE".md
sed -i "1 ititle: $TITLE" "$FILE".md
sed -i "1 i---" "$FILE".md
lowdown -L "$FILE".md
lowdown -X title "$FILE".md
lowdown -stms "$FILE".md | pdfroff -itk -mspdf > "$FILE".pdf