Skip to content

Commit fb72c97

Browse files
committed
[bikeshed] Attempt at fixing the Katex fixup
1 parent 8a73ca5 commit fb72c97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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 ("\\[" becomes "\[")
6565
data = data.replace('\\\\', '\\DOUBLESLASH')
6666
#data = data.replace('\\(', '')
6767
#data = data.replace('\\)', '')

0 commit comments

Comments
 (0)