10

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

  • 1
    I'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 Jul 24 '10 at 17:01
  • 2
    Pandoc is now capable of converting Markdown to DOCX directly. – LennySuperUser Nov 29 '12 at 8:28
9

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

  • 3
    Pandoc is now capable of converting Markdown to DOCX directly. – LennySuperUser Nov 29 '12 at 8:28
  • 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 Jun 12 '17 at 14:30
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.

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.

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.

0

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

pandoc README.md -o README.pdf
  • This program was suggested 7 years ago..... – Ramhound Apr 25 '17 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.