MathJax行内公式删除括号

This commit is contained in:
Meekdai 2024-04-03 14:28:25 +08:00
parent abaa9ea06e
commit 2399aa660f

View File

@ -133,7 +133,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>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["postBody"]=post_body