MathJax bug for long equation in comment

I tried to post this:

$$\sqrt{\left(\frac{\partial g}{\partial x_i}e_{x_1}\right)^2+\dotso+\left(\frac{\partial g}{\partial x}_ie_{x_n}\right)^2}=\frac gn\sqrt{\left(\frac{e_{x_1}}{x_1}\right)^2+\dotso+\left(\frac{e_{x_n}}{x_n}\right)^2}\;.$$


in a comment. It renders correctly in a main post:

$$\sqrt{\left(\frac{\partial g}{\partial x_i}e_{x_1}\right)^2+\dotso+\left(\frac{\partial g}{\partial x}_ie_{x_n}\right)^2}=\frac gn\sqrt{\left(\frac{e_{x_1}}{x_1}\right)^2+\dotso+\left(\frac{e_{x_n}}{x_n}\right)^2}\;.$$

but is rendered as raw command sequences in a comment; see the first comment below.

• $$\sqrt{\left(\frac{\partial g}{\partial x_i}e_{x_1}\right)^2 +\dotso+ \left(\frac{\partial g}{\partial x}_ie_{x_n}\right)^2} = \frac gn\sqrt{\left(\frac{e_{x_1}}{x_1}\right)^2 +\dotso+ \left(\frac{e_{x_n}}{x_n}\right)^2}\;.$$ – joriki Apr 3 '13 at 14:41
• I added some whitespace here and there, and it has cleared up the problem. – robjohn Apr 3 '13 at 15:38

• @MadScientist: Huh, I was just assuming that some CSS could take care of that automatically, but I now see that the relevant CSS property word-wrap is in CSS3 and I suppose this solution is chosen to deal with browsers that don't support it. I think maybe I was conflating it in my mind with the overflow property. – Zev Chonoles Apr 3 '13 at 15:00