Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Convert a File from Markdown to PDF with pandoc


    Pandoc is a command-line tool built in Haskell that can convert almost any markup or word processing format interchangeably. You specify the input and the output types and pandoc will do the rest.

    In this lesson we will convert a few markdown files to pdf. You will see how to convert a single file and then we'll write a script to loop through a couple files and convert them dynamically.

    This lesson requires that you install pandoc and have pdflatex available.

    You can install pandoc with brew: brew install pandoc To access pdflatex, you can install basictex and set the path for --pdf-engine to pdflatex