准备:
- markdown转换工具:pandoc
直接安装即可
步骤:
- 运行命令行工具cmd:
pandoc -f markdown -t docx ./test.md -o test.docx
如果 Github 风格的语法,需要将命令替换为:
pandoc -f markdown_github -t docx ./test.md -l test.docx
注:文件路径要书写正确
pandoc -f markdown -t docx ./test.md -o test.docx
如果 Github 风格的语法,需要将命令替换为:
pandoc -f markdown_github -t docx ./test.md -l test.docx
注:文件路径要书写正确