【工具】Pandoc 使用笔记

简介


pandoc 工具常用于转换文档格式,支持Markdown、HTML、LaTeX、Word docx、PDF等文档格式的转换。

安装


最简单的方法就是从官网下载软件直接安装。点击下载 。

还有其他的安装方法如下。

Windows


使用 Chocolatey 安装:

choco install pandoc

MacOS


使用 Homebrew 安装:

brew install pandoc

使用


常用文档格式转换 pandoc -o
pandoc -o output.html input.txt
显式指定输入\输出格式 pandoc -f pandoc -t , 如将hello.txt 从html转换成markdown格式
pandoc -f html -t markdown hello.txt

更多的使用方法请参考 官方手册 。

评论

暂无评论