-
Notifications
You must be signed in to change notification settings - Fork 30
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
Upgrade MathJax to 3.2.2 #63
Conversation
leimao
commented
Dec 30, 2023
- Updated MathJax CDNs.
- Updated MathJax Configs for MathJax 3.
matchFontHeight: false | ||
}, | ||
SVG: { | ||
matchFontHeight: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
新版MathJax没有matchFontHeight
设置了么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议加上。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我加好了,请您测试一下。
src/view/plugin/mathjax.jsx
Outdated
|
||
return ( | ||
<> | ||
<script type="text/x-mathjax-config" dangerouslySetInnerHTML={{ __html: js }}></script> | ||
<script dangerouslySetInnerHTML={{ __html: js }}></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看官方文档的意思,我是不是在这里还得加一个 type="text/javascript" id="MathJax-script" async
?
|
||
return ( | ||
<> | ||
<script type="text/x-mathjax-config" dangerouslySetInnerHTML={{ __html: js }}></script> | ||
<script src={jsUrl} defer={true}></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ppoffice 我把这个defer
attribute 给删除了,您看看我这么做合理吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
因为你用async
替换了defer
而且这个script在HTML的底部所以差别不大。