# 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)"
pandoc document.md -o document.pdf -F mermaid-filter