Reddit thinks ^ means superscript and surrounds text in . This needs to recognize when ^ should have been in a $\LaTeX$ fragment and undo the markdown.
The officially sanctioned /r/math way around this is to enclose the code in backticks to protect special characters, but this also breaks TeX All The Things: it doesn't apply MathJax to things in <code> elements
Reddit thinks ^ means superscript and surrounds text in . This needs to recognize when ^ should have been in a $\LaTeX$ fragment and undo the markdown.