MacOS – Markdown to .doc or .rtf

macosmarkdownms office

I'm interested in using a variation of Markdown for my work, but my target format is Word files (this is what my clients use, it's non-negotiable). Most implementations of Markdown would leave me with a circuitous route at best to get a Word file.

Perhaps more importantly, I'd want to be able to format things like footnotes/endnotes, which don't have any representation in Markdown or Multimarkdown, as far as I know.

Is there anything like this out there? Basically a flavor of Markdown oriented toward print rather than the screen?

Best Answer

You can also use pandoc:

pandoc -f markdown -t docx file.md -o file.docx

One advantage compared to textutil is that the output uses paragraph styles. You can also use styles from an existing file with --reference-docx file.docx.