Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
GitHub Style Markdown -> PDF with Pandoc + Weasyprint
pandoc --standalone \
--bibliography writing.bib --csl writing.csl \
-c \
-t html \
| sed '/<body>/c\<body class="markdown-body">' \
| weasyprint - output.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment