butterfly主题配置KaTex
在做博弈论笔记的时候,发现公式显示不了,最后决定还是使用和VsCode一样的KaTeX
首先去你的_config.butterfly.yml
配置文件中关闭mathjax
并打开KaTex
之后执行下面的命令卸载掉原来的渲染器
1 | npm un hexo-renderer-marked --save |
之后再安装新的渲染器
1 | npm i hexo-renderer-markdown-it-katex |
在_config.yml
中最后的部分配置以下字段
1 | markdown: |
最后hexo clean
,hexo g
一起喝成,之后就可以用了.
参考文献:
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment