# Formatting bug: long mathjax or code blocks break entire post or page

Long, broken MathJax expressions seem to break the formatting of all comments on a post, causing them to spill to far over to the right. In addition to making the comments hard to read, it can make the comments impossible to edit or delete, since the edit/delete buttons are pushed over past where the browser thinks the comment ends. This answer provides an example:

If I move my mouse over to "edit" or the "x", they disappear before I can click on them. This has been observed by at least one other user, who brought the issue to my attention.

In addition, a similar problem seems to happen with overly-long code blocks in mod messages, breaking all the messages in a conversation. Here is an admin-only link to an example; I'd appreciate it if the devs would check this out.

• Here's a copy of the bad code from that comment: $$f(z)=-\frac{1-iz\sqrt3}{2^{2/3}\sqrt[3]{-z+i\sqrt3}}-\frac12\sqrt[3]{\frac12\l‌​eft(-1+i\sqrt3\right)}\left(1+\sqrt3\z^{2/5}right)$$ And now let me write a very long sentence bla bla blatibitly bla bluuu (and some text) – Asaf Karagila May 5 '14 at 19:58
• Testing with a looooooooooooooooooooooooooooooooooong comment to make sure that comments on this post are also broken. – Alex Becker May 5 '14 at 19:59
• There. My comment should be a good testing area now. – Asaf Karagila May 5 '14 at 19:59
• This is related to, if not a duplicate of, this question, which is related to this question. – robjohn May 5 '14 at 21:28
• I just noted that the comment can be removed in the mobile SE version. I'll leave it there though for debugging purposes. – Daniel R May 6 '14 at 7:34
• Some kind of workaround, showing how to delete a comment, was posted by Willie Wong in his naswer here: meta.math.stackexchange.com/questions/2652/… – Martin Sleziak May 6 '14 at 8:53
• @MartinSleziak I think that math scaling thingie only works on rendered MathJax. – Daniel R May 6 '14 at 9:04
• @DanielR You are correct, I did not remember that post correctly. (I thought it was the same problem as here.) – Martin Sleziak May 6 '14 at 11:13
• Same issue as this report on meta.SE and this one on meta.stats.SE. There's a client-side CSS workaround included in SOUP. – Ilmari Karonen May 7 '14 at 13:00

Then everything is almost fine, and you can find the [x] or the  buttons once again.