Closed Antidington closed 9 months ago
可以换成hexo-renderer-markdown-it-plus来渲染,操作如下
npm un hexo-renderer-marked --save
npm i @upupming/hexo-renderer-markdown-it-plus --save
找到模板的layout文件layout.ejs
,在合适的地方加上 <link href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.10.2/katex.min.css" rel="stylesheet">
配置文件加入相关配置
math:
enable: true
specific: false
engine: katex
hexo clean & hexo g
可以换成hexo-renderer-markdown-it-plus来渲染,操作如下
npm un hexo-renderer-marked --save
npm i @upupming/hexo-renderer-markdown-it-plus --save
- 找到模板的layout文件
layout.ejs
,在合适的地方加上<link href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/KaTeX/0.10.2/katex.min.css" rel="stylesheet">
- 配置文件加入相关配置
math: enable: true specific: false engine: katex
hexo clean & hexo g
谢谢,已解决!😋
我编辑了几个公式块但是没办法正常显示,请问是不支持公式块吗?