v1.1.1
修复
- 修复了客户端渲染下 KaTeX 内链公式无法显示的 bug
特性/优化
现在数学公式不论客户端渲染还是服务端渲染均需安装 @reimujs/hexo-renderer-markdown-it-plus
不论 KaTeX 还是 MathJax3 的客户端渲染,都强烈建议在外层 _config.yml
中添加如下配置
markdown_it_plus:
rawLaTeX: true # for client render
这样便无需添加 raw 标签即可直接使用原生 LaTeX 多行块公式
Fixes
- Fixed bug where inline KaTeX formulas were not displaying correctly in client-side rendering.
Features/Optimizations
Now, for both client-side and server-side rendering of mathematical formulas, you need to install @reimujs/hexo-renderer-markdown-it-plus.
For both KaTeX and MathJax3 client-side rendering, it is strongly recommended to add the following configuration in the outer _config.yml
:
markdown_it_plus:
rawLaTeX: true # for client render
With this configuration, you can use native LaTeX block formulas without needing to add the raw
tag.
Full Changelog: v1.1.0...v1.1.1