Convert Markdown-Docu to docx under windows without pandoc?

1.6k views Asked by At

I know and love pandoc, but my client wants me to regulary convert Markdown documentation (saved inside a git respository) to MS Word documents without using pandoc. Two alternatives I came up with so far are:

  1. Use the HTML previews generated by giteea, save each of them as HTML or PDF and re-import those files into MS Word.
  2. Use the markdown functionality of Visual Studio Code, print each page as PDF, and reimport it to MS Word.

Both approaches have the same drawbacks: They are not easy to script, require a PDF-to-Word plugin, and need manual cleansing afterwards.

My question: Is there some magic powershell functionality or advanced command-line option of Visual Studio Code I could use?

PS: I am aware that my request sounds rather exotic, but what can I do: The business asks for docx-files, but on the other hand, the IT side insists in Markdown (for good reasons).

References

0

There are 0 answers