Closed silencial closed 3 years ago
Thanks for opening this issue, maintainers will get back to you as soon as possible!
你的demo刷新也无法打开额。
你的demo刷新也无法打开额。
我这边刷新数学公式就出来了呀 😂 你是开的哪一篇文章?
NexT only supports MathJax 3. You should update the CDN URL in vendors
.
See also https://github.com/next-theme/hexo-theme-next/issues/4
抱歉之前确实没找到这个说明。
使用 Mathjax3 是没问题的,但是 Mathjax3 目前还缺少很多 feature,比如 \\
换行,可以参照 issue。估计很多人还是在使用 Mathjax2?
所以有没有可能继续支持 Mathjax2 呢?
如果要使用 Mathjax 2,最简单的方法是使用后端渲染插件 hexo-filter-mathjax,见 https://github.com/next-theme/hexo-filter-mathjax/issues/15#issuecomment-626151993
安装 hexo-filter-mathjax 后和之前行为一样,还是需要刷新后公式才能正常渲染。直接从主页的 Read More
点进去公式不渲染
执行 hexo clean
试试
另外需要禁用 NexT 自带的 MathJax
math:
mathjax:
enable: false
试了一圈,发现在文章 front-matter 中加入 mathjax: true
后一切正常,否则即使刷新也没有效果。不知道要怎么开启对所有页面都默认支持 mathjax 的选项呢?
已在 hexo 的 _config.yml
中开启,但无效:
mathjax:
every_page: true
大概明白了,hexo-filter-mathjax@0.2.0 版还不支持 every_page
的选项。看来只能在每篇 post 中加入 mathjax: true
了
问题还是有点多,比如 numbering equations 也不行了,看来还是得等 MathJax3 支持 😐。 感谢 @stevenjoezhang
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.
Issue Checklist
Expected behavior
Math Equations should be rendered.
Actual behavior
Equations are not rendered when
Read More
button to open a postEquations are rendered when
Read More
button and then refresh the pageGo to this blog and open the post with title Mobile Robots on the first page. See that the math is not rendered, then refresh the page to see it works.
Steps to reproduce the behavior
Environment Information
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information