The Computer Oracle

How should I convert Markdown (or similar) to a Word Document?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle

--

Chapters
00:00 How Should I Convert Markdown (Or Similar) To A Word Document?
00:38 Answer 1 Score 14
00:56 Answer 2 Score 13
01:14 Answer 3 Score 7
01:42 Accepted Answer Score 120
01:55 Thank you

--

Full question
https://superuser.com/questions/181939/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#microsoftword #conversion #markdown

#avk47



ACCEPTED ANSWER

Score 120


Get pandoc version 1.9 or higher. Then:

pandoc myfile.txt -o myfile.docx

Recent versions of pandoc allow direct conversion of markdown to word.




ANSWER 2

Score 14


This isn't a complete answer to your situation, but you may want to investigate using Pandoc which can convert Markdown into other formats including RTF (which MS Word should be able to handle reasonably well).

Unfortunately, I have no idea if this will work with the DeepFreeze system you describe.




ANSWER 3

Score 13


If you already have a Markdown tool for producing HTML, open the HTML in a browser and copy/paste into Word. Alternately, just open the HTML file itself in Word then save as Word format.




ANSWER 4

Score 7


The method that has worked best for me is to use markdown to produce HTML, upload the document to Google Docs, select the option for Google Docs to convert it to their format, then download it as a DOC file.

Using pandoc to convert to RTF works (make sure to use --standalone option), but it loses the "style* of headers in Word.

Using Google Docs, the resulting DOC file keeps the notion of style so that you can change the formatting of all h1 headers in one step.