1 , 安装软件
官网:Pandoc - Installing pandoc
2,打开cmd,切换到word文件所在的目录
这个不会可以自行百度不难。。。
3,在根文件目录下输入如下这行代码
pandoc -f docx -t markdown --extract-media=media -o output.md input.docx
-f docx:指定源文件为 docx 格式(from)
-t markdown:指定我们要转为 md 格式(to)
-o output.md:表示输出的文件名为 output.md(output)
input.docx:表示要转换的文件为 input.docx