Markdown to PDF

Turn a markdown file into a pdf:

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

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

1make example
2make

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

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