Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@klausbrunner
Last active July 8, 2022 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klausbrunner/1fe186ce4f83771d89610c9c7672fd22 to your computer and use it in GitHub Desktop.
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)
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