pandoc 使用

命令行窗口执行:

pandoc test.md -o test.docx

命令行执行以上命令就可以将markdown转成word.

参数释义:

pandoc -f docx -t markdown -o output.md input.docx

-f docx:指定源文件为 docx 格式(from)

-t markdown:指定我们要转为 md 格式(to)

-o output.md:表示输出的文件名为 output.md(output)

input.docx:表示要转换的文件为 input.docx

posted @ 2022-09-06 14:44  shan_zhayidian  阅读(115)  评论(0编辑  收藏  举报