Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GitHub Style Markdown -> PDF with Pandoc + Weasyprint
build:
pandoc writing.md --standalone \
--bibliography writing.bib --csl writing.csl \
-c https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/2.10.0/github-markdown.css \
-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