-
Notifications
You must be signed in to change notification settings - Fork 414
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
[Bug Report] MathJax 无法渲染 #880
Comments
配置问题吧,我这里是正常的: mathBlock: {
engine: "MathJax", // katex或MathJax
src: import.meta.env.BASE_URL + "/mathjax/es5/tex-svg.js",
plugins: true, // 默认加载插件
},
inlineMath: {
engine: "MathJax", // katex或MathJax
src: import.meta.env.BASE_URL + "/mathjax/es5/tex-svg.js",
}, import CherryMermaidPlugin from "cherry-markdown/dist/addons/cherry-code-block-mermaid-plugin";
import mermaid from "mermaid";
Cherry.usePlugin(CherryMermaidPlugin, {
mermaid,
}); |
你是指其他配置项可能影响到公式吗?直觉上来说都是独立的不应该呀 另外我是用的最新版本的markdown+mermaid9+echarts4(READMD文档上的版本号) 再者,您可以试下异步import看看mermaid的导入方式是不是如我所说 |
我也是最新版本,不过我没有用异步加载耶~ 很早之前在其他项目用过异步加载,感觉问题比较多处理、调试起来都很麻烦,意义也不大,所以后来就不用了,直接copy demo代码就能调通的事就不折腾了。 |
又看了一遍你的配置,确实是少了一行,你只配置了Block块级公式的src,Inline行级公式的src没有配置,而你截图里插入的都是行级公式的代码,当然无法解析。 |
有块级公式吧,双$中间就是 |
实测:
|
Prerequisites
Describe the Bug
公式无法正常渲染,相关的配置文档也不详细;
另外经实践发现,根据当前的文档描述,mermaid的异步引入会出错,同样需要使用default解构才可以正常工作
Reproduction Steps
No response
System Information
No response
Contributing
None
The text was updated successfully, but these errors were encountered: