修复MathJax行内公式显示不正常的BUG
This commit is contained in:
parent
3fe6856fd6
commit
222729c853
2
Gmeek.py
2
Gmeek.py
@ -122,7 +122,7 @@ class GMEEK():
|
||||
if '<math-renderer' in post_body:
|
||||
post_body=re.sub(r'<math-renderer.*?>','',post_body)
|
||||
post_body=re.sub(r'</math-renderer>','',post_body)
|
||||
issue["script"]=issue["script"]+'<script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>'
|
||||
issue["script"]=issue["script"]+'<script>MathJax = {tex: {inlineMath: [["$", "$"], ["\\(", "\\)"]]}};</script><script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>'
|
||||
|
||||
postBase["postTitle"]=issue["postTitle"]
|
||||
postBase["postBody"]=post_body
|
||||
|
||||
Loading…
Reference in New Issue
Block a user