Pandoc
安装
- 下载地址
wget https://github.com/jgm/pandoc/releases/download/1.17.2/pandoc-1.17.2-1-amd64.deb
sudo dpkg -i /path/to/deb/file
sudo apt-get install -f
使用
- ctrl+alt+t打开终端输入
pandoc -v
验证安装 pandoc
,ctrl+D
退出,默认输入markdown,Hello *pandoc*! `-` one
输出为html4
`- two ``
Hello pandoc!
`
`- one
- two
pandoc -f html -t markdown
输入html`
,ctrl+D退出时输出Hello pandoc!
``Hello *pandoc*!`
- ctrl+alt+t打开终端输入
pandoc test1.md -f markdown -t html -s -o test1.html
-f
指定文件格式-t
目标格式-s
, standalone,生成独立文件,带header, footer。-o
, 输出文件名