I've had to install and configure these things a few times, and I always forget how to do it, so here it is for posterity:
-
Update brew and install pandoc:
brew update brew install pandoc
-
Install mactex from https://www.tug.org/mactex/
-
Update
$PATH
# add the following to .zshrc or wherever you define your $PATH export PATH="$PATH:/usr/local/texlive/2018/bin/x86_64-darwin"
It's also possible that
pdflatex
is in a slightly different path depending on the version of MacLaTeX. -
Create PDF from Markdown
pandoc doc.md -o doc.pdf