Line break before img

From Wikipedia

Testing for wikimedia HTML rendering bug whereby:

(<math>1/r^2</math>)

can break the line between the opening bracket and the resulting image tag, also (rarer) between the image and the closing bracket. HTML output is

(<img class="mwe-math-fallback-image-inline tex" alt="1/r^2"
src="//upload.wikimedia.org/math/f/9/0/f905d700fc1410610c8b8fe7b5aaa859.png" />)

Test by changing font size (ctrl-plus / ctrl-minus) or by finely changing window width.

() () () () () () () () () () () () () () () () () () () () ()

One solution that "seems to work" is to output <nobr>...</nobr> around the img tag and any text that abuts it on either side, but this is deprecated in current HTML and so may not be supported by all browsers.