Pandoc: Markdown to PDF

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Pandoc: Markdown to PDF

Post 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
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply