Last active
July 8, 2022 14:13
-
-
Save klausbrunner/1fe186ce4f83771d89610c9c7672fd22 to your computer and use it in GitHub Desktop.
Convert markdown with mermaid to PDF using sans fonts (tested on MacOS; pandoc and mactex installed via homebrew, mermaid-filter installed via npm)
This file contains 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 -t pdf -F mermaid-filter -o README.pdf README.md --pdf-engine=xelatex -V mainfont="PT Sans" -V monofont="PT Mono" -V papersize:a4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment