Page 1 of 1

Pandoc: Markdown to PDF

Posted: Sun Oct 29, 2017 1:00 am
by ^rooker
The command is this:

Code: Select all

pandoc -so output.pdf input.md
Where you replace "output.pdf" and "input.md" with your destination and source file respectively.

In order to generate PDF documents from Markdown (.md) files, you need the following packages installed:
(This list should work for Debian-based GNU/Linux systems. Tested on Xubuntu 16.04.3)

First of all the conversion tool "Pandoc":

Code: Select all

pandoc
Pandoc requires "pdflatex" to generate PDFs. You need at least these packages to satifsy prerequisites:

Code: Select all

texlive-latex-base texlive-fonts-recommended