首先切换渲染器,在hexo目录下控制台执行以下代码
1 2
| npm uninstall hexo-renderer-marked --save npm install hexo-renderer-markdown-it-plus --save
|
front-matter中写入
volantis自己的_config中
1 2 3 4
| katex: js: https://unpkg.com/katex@0.16.4/dist/katex.min.js # https://unpkg.com/katex@0.15.2/dist/katex.min.js css: https://unpkg.com/katex@0.16.4/dist/katex.min.css # https://unpkg.com/katex@0.15.2/dist/katex.min.css render: https://unpkg.com/katex@0.16.4/dist/contrib/auto-render.min.js # https://unpkg.com/katex@0.15.2/dist/contrib/auto-render.min.js
|