# How can I see rendered MathJax/LaTeX when reviewing edits?

Posts from new users often requiring edits that add LaTeX code. When I review edits from users that add such code, all I see on the LHS and RHS are the raw LaTeX codes, such as $a_y=g$. This is the case even after I select the "rendered" view button. I'd rather just compare the two rendered outputs. Admittedly I have only noticed this on my Mac's Safari, and haven't tried other browsers.

Is there a way to view rendered LaTeX when reviewing?

• Sometimes it takes a moment or two for me to get them to load (using Opera 12 webbrowser on Scientific Linux 6.4), I usually just run with it and fix it after submitting the fix (you get a 5 minute grace period anyway) – Kyle Kanos Mar 5 '14 at 21:19

You mean like the third paragraph in this edit?

That's kind of a tricky case. The problem is that the change is in the middle of an equation, so the diff engine sticks some extra markup in there to highlight it, causing MathJax not to recognize it as a valid equation at all. To fix it, either:

• a) the SE diff generator would need be changed to treat MathJax sections as atomic blocks (which would have the unfortunate side effect of always showing the entire equation as changed, even if the actual change was to a tiny part of it), or

• b) MathJax itself would have to be somehow tweaked to recognize the diff markup and replicate it in the rendered equation. I've done a bit of MathJax hacking myself, but that sounds way beyond my skills.

I suspect the first option above would be the more practical one, but I can't really tell — AFAIK, the diff generation is done on the server side, so only SE developers actually know how the code works.

I just run the chatjax bookmarklet on the diff. It usually works.

I guess showing a rendered diff of math is a rather non-trivial problem, so they just show the latex diff.

• For me it fails to render when VTCing as a duplicate: the original renders but the duplicates don't. I'll give this a try and see if it works. – Emilio Pisanty Mar 5 '14 at 21:29
• Does this fix my problem? – user10851 Mar 5 '14 at 23:34
• @ChrisWhite I don't think so :/ – Manishearth Mar 5 '14 at 23:39
• @EmilioPisanty: SOUP includes a fix for that problem. – Ilmari Karonen Mar 6 '14 at 0:31