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
See example here. I checked on both new and old Reddit in Firefox. The equation [; \sum_{n=1}^{\infty}{ \frac{1}{n^2} } = \frac{\pi^2}{6} ;] is displayed as LaTeX only when it is put into a code block. If it is put in plain text, the carets get interpreted as Reddit's markup and turned into <sup> tags.
One possible way to solve this is to rewrite all <sup> tags found between the LaTeX delimiters back to LaTeX notation they are supposed to be.
The cheap way to go about it is to simply ask everyone to put their equations into code blocks.
The text was updated successfully, but these errors were encountered:
Our advice on /r/math has always been to use code blocks:
As you say, it should be possible to write a heuristic to reverse reddit's markdown renderer (note that we also need to worry about asterisks, underscores, tildes and maybe some other things I'm forgetting...), but it would mean detecting the LaTeX delimiters ourself rather than relying on MathJax to do that for us.
Very happy to review a PR if someone else wants to try implementing this, but I don't have the time to do it myself.
For the time being, maybe the documentation should say that the delimiters are actually `[; … ;]` and `(; … ;)`? This is what we expect the user to actually type.
See example here. I checked on both new and old Reddit in Firefox. The equation
[; \sum_{n=1}^{\infty}{ \frac{1}{n^2} } = \frac{\pi^2}{6} ;]
is displayed as LaTeX only when it is put into a code block. If it is put in plain text, the carets get interpreted as Reddit's markup and turned into<sup>
tags.One possible way to solve this is to rewrite all
<sup>
tags found between the LaTeX delimiters back to LaTeX notation they are supposed to be.The cheap way to go about it is to simply ask everyone to put their equations into code blocks.
The text was updated successfully, but these errors were encountered: