安装:sudo apt-get install pandoc使用:man pandoc 查看帮助文档直接转换,命令如下:pandoc -f markdown -t docx ./test.md -o test.docx如果使用GitHub风格markdown语法,可用下面命令转换:pandoc -f gfm -t docx ./test.md -o test.docx参考博文:https://www.zhihu.com/question/22972843