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
If we write a dollar sign right next to a number, such as $5 = x$, this is supposed to be valid Mathjax syntax but it gets parsed into odd characters. I suspect it has something to do with an underlying issue in how we escape and handle the backslash. This does not happen with any other symbols, and it only happens on the first dollar sign, so $x = 5$ is fine. If we add a space, as in $ x = 5$ the issue also goes away.
The text was updated successfully, but these errors were encountered:
mstachowsky
changed the title
Strange Mathjax formatting with $ right next to numbers
Strange Mathjax formatting with special characters right next to numbers
Oct 26, 2021
Update: I think I understand what is going on. The string starting with [ is used to parse links and other things in the markdown. The function that looks for that (openSquareBracketCheck, and possibly others) in parseToJSON.py does not account for such special characters inside of a MathJax string.
If we write a dollar sign right next to a number, such as
$5 = x$
, this is supposed to be valid Mathjax syntax but it gets parsed into odd characters. I suspect it has something to do with an underlying issue in how we escape and handle the backslash. This does not happen with any other symbols, and it only happens on the first dollar sign, so$x = 5$
is fine. If we add a space, as in$ x = 5$
the issue also goes away.The text was updated successfully, but these errors were encountered: