Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置Mathjax渲染模式 #749

Closed
YSXCC opened this issue May 22, 2022 · 4 comments
Closed

设置Mathjax渲染模式 #749

YSXCC opened this issue May 22, 2022 · 4 comments
Labels
✨ enhancement New feature request

Comments

@YSXCC
Copy link

YSXCC commented May 22, 2022

当我升级了hexo和fluid版本后, Mathjax默认采用了CHTML渲染.

希望能够在配置文件中主动设置渲染模式.

@YSXCC YSXCC added the ✨ enhancement New feature request label May 22, 2022
@YSXCC
Copy link
Author

YSXCC commented May 22, 2022

暂时设置Mathjax默认渲染为 svg 的方法就是在 ..\hexo-theme-fluid\layout_partials\plugins\math.js中修改'es5/tex-mml-chtml.js'为'es5/tex-svg.js'

@hewei2001
Copy link

我也遇到了同样的问题,我是修改为 es5/tex-svg-full.js 解决的

@ZermZhang
Copy link

_config.fluid.yml配置文件中,增加如下配置可以使Mathjax默认渲染方式为svg:
这里好像没有名为tex-mml-chtml.js的脚本😂

static_prefix:
  mathjax: https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.1/

@YSXCC
Copy link
Author

YSXCC commented May 24, 2022

是 Mathjax 版本问题, 3.2.0版本会出现默认 CHTML 渲染, 切换至 3.2.1就没问题了. 感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature request
Projects
None yet
Development

No branches or pull requests

3 participants