Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Convert markdown with mermaid to PDF using sans fonts (tested on MacOS; pandoc and mactex installed via homebrew, mermaid-filter installed via npm)
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