WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c6b743b

Browse files
committed
[spec] Fix Katex hacks 3
1 parent 228614a commit c6b743b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

document/core/util/mathjax2katex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def HasBalancedTags(s):
6161

6262
def ReplaceMath(cache, data):
6363
old = data
64-
data = re.sub('[\\\\]\\[([0-9]|-)', '\\\\\\\\DOUBLESLASH\\[\\1', data) # Messed up by Bikeshed
64+
data = re.sub('[\\\\][\\\\]\\[([0-9]|-)', '\\\\DOUBLESLASH[\\1', data) # Messed up by Bikeshed
6565
data = data.replace('\\\\', '\\DOUBLESLASH')
6666
#data = data.replace('\\(', '')
6767
#data = data.replace('\\)', '')

0 commit comments

Comments
 (0)