$ pandoc file1.md file2.md -o file.docx
It isn't difficult. TeX and LaTeX have been doing it since the 70s and 80s respectively.