-
-
Save rilla/d687ad20e327504681fc1839668a5fe6 to your computer and use it in GitHub Desktop.
GitHub Style Markdown -> PDF with Pandoc + Weasyprint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pandoc input.md -c https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/3.0.1/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