Pandoc
Pandoc is a command line tool for converting files from one format to another. A popular conversion is the conversion from Markdown to PDF format. Pandoc has its own flavored Markdown syntax and ignores HTML inside Markdown files when generating PDF files from Markdown.
pandoc -s input.md -o output.pdf
Installation
Install Pandoc on Debian by executing the following terminal command:
sudo apt install pandoc
Pandoc depends on an engine for converting Markdown files to PDF format, so also
install the texlive-full
package:
sudo apt install texlive-full
Templates
When converting Markdown files to PDF it is possible to provide a .tex
template. With a template the generated PDF can be styled and customized.