我试图在Ubuntu18.04上使用pandoc (1.19.2.4版)来呈现github的风味标记:
pandoc --from gfm --to html README.md
这就产生了错误pandoc: Unknown reader: gfm。
我想我需要验证/安装gfm,但不清楚如何做到这一点。
如何修复此错误?如何使用pandoc生成github调味的标记?
发布于 2019-05-22 10:21:53
发布于 2020-04-10 11:12:58
你需要新的。
我写了一个脚本,get和从官方github安装新的pandoc。
步骤1-下载:
wget https://github.com/jgm/pandoc/releases -O /tmp/pandocPage.html
urlPart=`grep "\.deb" /tmp/pandocPage.html | head -n 1 | cut -d'/' -f2-7 | cut -d'"' -f1`
wget "https://github.com/$urlPart" -O mypandoc.deb
rm /tmp/pandocPage.html # remove junk步骤2-安装.deb文件(通过dpkg -i命令):
sudo dpkg -i /tmp/mypandoc.deb
rm /tmp/mypandoc.deb # remove junk就这样。
https://stackoverflow.com/questions/56252081
复制相似问题