下载pandoc-1.19.2.1-windows.msi:
链接:https://pan.baidu.com/s/13homNoPOrfEKRt-DFVdrYQ
提取码:q5e1
下载basic-miktex-2.9.5105-x64.exe (如果需要转换pdf等格式,需要安装这个)
链接:https://pan.baidu.com/s/1tRL6K898WKfPPD7Q-EBWzQ
提取码:481g
一路安装即可。
cmd查看pandoc是否安装:
pandoc --version
markdown和docx转换
pandoc -f markdown -t docx ttt.md -o ttt.docx; # markdown -> docx
pandoc -f docx -t markdown ttt.docx -o ttt2.md; # docx -> markdown
转换为html:
pandoc slides.md -o slides.html -s
当然也可以转换为ppt幻灯片等,这里不详述。