Preview markdown in HTML then print to PDF.

Install grip (based on Flask):

$ pip install grip

Open your markdown file in the browser:

$ grip markdown_file.md

This runs a web server and it gives you the localhost link to open. Updates in your markdown file are refreshed. Preview in the browser and print PDF from there.

References: