You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r"(?<!\\)\$\$(?P<latexDisplayDollar>[\s\S]+?)(?<!\\)\$\$|"# $$...$$ (display math, can be multiline)
153
153
r"(?<!\\)\\\[(?P<latexDisplayBracket>[\s\S]+?)(?<!\\)\\\]|"# \[...\] (display math, can be multiline)
154
-
r"(?<!\\|\d)\$(?P<latexInlineDollar>(?:\\[$]|[^\n$])+?)(?<!\\)\$|"# $...$ (inline math, single line, allows escaped $), we make sure it's not preceed by a digit to minimize false positives with actualy dollar unit
154
+
r"(?<!\\|\d)\$(?P<latexInlineDollar>(?:\\[$]|[^\n$])+?)(?<!\\)\$|"# $...$ (inline math, single line, allows escaped $), we make sure it's not preceded by a digit to minimize false positives containing dollar as a unit
155
155
r"(?<!\\)\\\((?P<latexInlineParenthesis>[^\n]+?)(?<!\\)\\\)|"# \(...\) (inline math, single line)
156
-
r"(?<!\\)\[(?P<latexInlineBracket>[^\n$]+?)(?<!\\)\]"# [....] While this is no a valid display math llms like to generate it, allow it
156
+
r"(?<!\\)\[(?P<latexInlineBracket>[^\n$]+?)(?<!\\)\]"# [....] While this is not a valid display, math LLMs like to generate it. We allow it
# This makes sure we can convert numebrs like 0001 to 1, do note that this can convert 0 to ''
309
+
# This makes sure we can convert numbers like 0001 to 1. Do note that this can convert 0 to '', so we assume an empty string was 0 and convert it back afterwards.
0 commit comments