Skip to content

Instantly share code, notes, and snippets.

@mowings
Created May 3, 2024 14:12
Show Gist options
  • Save mowings/8bf8167a1e89984eb4be68f01a5a65a2 to your computer and use it in GitHub Desktop.
Save mowings/8bf8167a1e89984eb4be68f01a5a65a2 to your computer and use it in GitHub Desktop.
Markup with embedded Mermaid to PDF on OSX

Install pandoc, basic-tex and mermaid-filter

# brew install pandoc
# brew install --cask basictex
# npm i -g mermaid-filter

# Be sure to run the path_helper in an existing shell. Otherwise pdf-latex won't be found
# eval "$(/usr/libexec/path_helper)"

Convert an markdown to pdf

pandoc document.md -o document.pdf -F mermaid-filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment