Pandoc

Installation

I installed it via brew.

brew install pandoc

Make sure you have MacTeX installed, too.

brew install mactex

Templates

Generate pdfs, which look a bit better than the default. I used the Eisvolgel template.

Download the eisvogel.latex and move it to the templates directory.

mkdir -p .local/share/pandoc/templates/
mv eisvogel.latex .local/share/pandoc/templates/

Generate the pdf:

pandoc file.md -o file.pdf --template eisvogel --listings