使用pandoc渲染
在之前的文章中,我们讲到了Mathjax来在Hexo中输入公式。
由于Hexo的默认渲染使用hexo-renderer-marked,在渲染Mathjax的过程中存在一些问题。
这里我使用了hexo-renderer-pandoc渲染器来替代了默认的渲染器。
安装
依赖安装
使用hexo-renderer-pandoc依赖于pandoc,所以需要先安装pandoc,参见pandoc官网
https://pandoc.org/installing.html
替换渲染器
在Hexo站点根目录执行以下命令
1
2
npm uninstall hexo-renderer-marked