Markdown to Word/PDF converter for Linux

10

Does anyone know of a good Markdown to Word COnverter? It would be great if it also converts to PDF.

Bill Jeffrey

Posted 2010-07-24T09:51:21.780

Reputation: 101

1I'd think it would make more sense to go through HTML as an intermediate step, because that's what Markdown is designed for. – David Z – 2010-07-24T17:01:36.950

2Pandoc is now capable of converting Markdown to DOCX directly. – LennySuperUser – 2012-11-29T08:28:18.790

Answers

9

It seems Pandoc can convert Markdown to PDF (via LaTeX). Converting to Word should be possible by converting to ODT or RTF first.

Florian Diesch

Posted 2010-07-24T09:51:21.780

Reputation: 3 380

1

Directly from Markdown to PDF would be pandoc Manual.md --latex-engine=xelatex -o Manual.pdf. If you get pandoc: xelatex not found. xelatex is needed for pdf output.: sudo apt install texlive-xetex

– Pablo A – 2017-06-12T14:30:38.247

3Pandoc is now capable of converting Markdown to DOCX directly. – LennySuperUser – 2012-11-29T08:28:00.447

1

It seems like there are no automatic tools to do that without having to use workaround that can result in serious glitches (ex: markdown -> odt -> docx).

I have found that generating a html, then doing a copy/paste into a word document looks surprisingly good.

N0thing

Posted 2010-07-24T09:51:21.780

Reputation: 131

1

Byword is a mac app that converts to word and PDF. It also has some great features that make writing markdown even easier.

Also if you want to style your documents - I can recommend the Marked app which allows you to apply css to your .md files and export to a range of formats.

Matt

Posted 2010-07-24T09:51:21.780

Reputation: 151

0

Since you're asking for a Linux solution, here is one:

pandoc README.md -o README.pdf

LI AR

Posted 2010-07-24T09:51:21.780

Reputation: 11

1This program was suggested 7 years ago..... – Ramhound – 2017-04-25T17:40:23.520

0

For Mac OS there is also the free mou app which allows you to edit Markdown. Using the print function you can output the rendered document as pdf.

Florian Feldhaus

Posted 2010-07-24T09:51:21.780

Reputation: 218