© Thomas Mailund 2019
T. MailundIntroducing Markdown and Pandochttps://doi.org/10.1007/978-1-4842-5149-2_5

5. Translating Documents

Thomas Mailund1 
(1)
Aarhus N, Denmark
 

Once we have a document written in Markdown, we want to translate it into other file formats using Pandoc. First, though, we have to download Pandoc. Go to Pandoc’s installation guide at http://pandoc.org/installing.html and follow the instructions relevant for your platform.

Formatting a Markdown Document with Pandoc

For our first example , we can take the small Markdown document shown here:
# This is a test document
Here is some text in the document.
* This is a list
* With two items
If we save this Markdown document in a file called input.md, we can translate it into an HTML file, ...

Get Introducing Markdown and Pandoc: Using Markup Language and Document Converter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.