Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Convert Markdown to PDF
$ brew install markdown htmldoc
$ markdown <file.md> | htmldoc --cont --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > <file.pdf>
if (( $# != 2 ))
then
echo "Usage: md2pdf <input.md> <output.pdf>"
exit 1
fi
markdown $1 | htmldoc --cont --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment