Closed woruo27 closed 3 years ago
我无法复现你所说的这个问题,请问你能否新建一个测试网站部署出来?
mathjax的特殊处理已经做了,不应当出现这个问题 https://github.com/next-theme/hexo-theme-next/blob/361c7e16c624a3c0c32f2c9b57a2a13e5746a3c3/source/js/third-party/math/mathjax.js#L31-L34
@zj713300 我也尝试了,无法复现
用这个复现:https://github.com/zj713300/test 部署:test.woruo.online
这个Issue我先关了,如果mathjax还有别的问题可以回复一下
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.
Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
mathjax正常渲染
Actual behavior
公式会以markdown中的源代码显示。
我想应该对mathjax进行特殊处理,绕过pjax让其在页面切换时重新渲染一次。
测试环境无法提供公网访问,生产环境已经关闭pjax。
Steps to reproduce the behavior
建一个新站,配置好next,打开pjax和mathjax。新建一个post,把公式放进
<!-- more -->
下面。部署好以后从主页点击链接进入post,可以观察到mathjax并未渲染。Environment Information
Node.js and NPM Information
Package dependencies Information
Hexo Configuration
NexT Configuration
Other Information