MathJax行内公式删除括号
This commit is contained in:
parent
abaa9ea06e
commit
2399aa660f
2
Gmeek.py
2
Gmeek.py
@ -133,7 +133,7 @@ class GMEEK():
|
|||||||
if '<math-renderer' in post_body:
|
if '<math-renderer' in post_body:
|
||||||
post_body=re.sub(r'<math-renderer.*?>','',post_body)
|
post_body=re.sub(r'<math-renderer.*?>','',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>MathJax = {tex: {inlineMath: [["$", "$"], ["\\(", "\\)"]]}};</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["postTitle"]=issue["postTitle"]
|
||||||
postBase["postBody"]=post_body
|
postBase["postBody"]=post_body
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user