I have automated my build to convert Markdown files to DOCX files using Pandoc. I have even used a reference document for the final document\'s styling. The command I use is
I used it on some complex templates, and found it mapped the fonts, company logos, etc very well. But going .docx -> .docx, I had to manually apply Heading styles to the chapter / section breaks. The font was correct, but the sectioning wasn't. I'll try .md -> .docx next.
This feature is now available in Pandoc, as described here:
Markdown to docx, including complex template
From the link above:
pandoc input --reference-docx=my-reference.docx -o out.docx
where my-reference.docx (n.b. not a .dotx) can be: