Markdown to PDF
To convert markdown to PDF... I made a tool for that:
It lets you choose different themes as well.
The conversion from html to pdf is performed by wkhtmltopdf
And it uses stylesheets/themes from:
Markdown to HTML
On my local machine, if I need to convert 1 or more markdown files into a static html website I use: secretGeek/clowncar - a Static Site Generator i've shared on github.
HTML to PDF
To perform the HTML to PDF step, on my local machine, I use either Headless Chrome or wkhtmltopdf.
(If doing just one file -- I open it in a browser and print to pdf, manually.)