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公式渲染错误 #421

Open
TNTWEN opened this issue Feb 15, 2022 · 1 comment
Open

下划线导致Mathjax公式渲染错误 #421

TNTWEN opened this issue Feb 15, 2022 · 1 comment

Comments

@TNTWEN
Copy link

TNTWEN commented Feb 15, 2022

在同一行的公式中出现两个下划线会被渲染为斜体,导致公式渲染异常
如:
$\hat{u}_{i}^{(0)}(m, n)$和$\hat{u}_{i}^{(3)}(m, n)$
两个下标的下划线 出现在同一行 就会导致公式渲染错误
需要把第二个下划线改成 \_ 才可以,但是这个和markdown公式渲染规则就不一致了。

请问该怎么解决呢?

@tofucurd
Copy link

试试把_includes/mathjax_support.html替换成:

<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
<script type="text/javascript" async src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>

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

No branches or pull requests

2 participants