How to convert Markdown to PDF ?


Install pandoc (you can use your package manager on linux)

Make sure that you have latex2pdf and bibliography packages if required installed (some packages of pandoc don't have these as required)

just run the pandoc command.

pandoc -o output.pdf

Add optionals such as

--toc for a Table of Contents
--bibliography mybibliography.bib for a Bibliography
--csl bibliographytemplate.csl for a particular Bibliography style
--template template.tex to use your own particular template

Then just wait a few seconds and you have your finalized PDF

Answered by Jonathan Mifsud