# No MathJax line wrapping in Firefox

Example:

Chrome, for comparison:

Happens on Windows 10, both browsers are up to date. Should I use the tag? Does anybody else encounter this? Can it be something on my side?

After the question in a comment by Martin Sleziak: actually I cannot access the MathJax menu anywhere on Firefox.

When I edit that question and replace the $$ with \begin{multline*} .. \end{multline*} the wrapping renders correctly. In Firefox under WSL inside the same system it renders correctly, and I can access the MathJax menu too. • Does the behavior change if you switch the math renderer? (See also: How do I change Math Renderer for MathJax?) – Martin Sleziak Jun 3 at 4:10 • @MartinSleziak Good question! I cannot access the MathJax menu anywhere on Firefox! – მამუკა ჯიბლაძე Jun 3 at 4:35 • That's interesting - here's is a screenshot showing also what I get in FF (including the MathJax menu): i.stack.imgur.com/dL04K.png To save work for the user who want to try this on the same post, I will add a link: Integral representation of product of two Whittaker functions. – Martin Sleziak Jun 3 at 4:45 • Did you try to force reload the page to override cache (Ctrl+Shift+R or Ctrl+F5)? – Emil Jeřábek Jun 3 at 6:33 • @EmilJeřábek Tried now, rendered MathJax momentarily turns into TeX code and then returns to the same – მამუკა ჯიბლაძე Jun 3 at 6:56 • Are you really sure you cannot access the MathJax menu? It can be somewhat difficult to get it right at times. You need to place cursor over a rendered element of the MathJax expression (ideally, something with a large area, such as one of the W’s in the displayed equation); in most (but not all) modes, a correct place is visually indicated by the pointer cursor changing to a text cursor. Then you right click. – Emil Jeřábek Jun 3 at 7:59 • FWIW, for me (Firefox 89 on Linux) the line breaks display correctly with most Math Renderer settings (including the default “HTML-CSS”), with the exception of “Preview HTML” and “MathML”, which make it look similar to your screenshot. – Emil Jeřábek Jun 3 at 8:05 • @EmilJeřábek I tried at several different expressions of various sizes. When I hover over it, occasionally the cursor changes from an arrow to a vertical line, but in any case when I right click I just get the default Firefox menu that appears upon the right click anywhere else. – მამუკა ჯიბლაძე Jun 3 at 8:14 ## 2 Answers Inspired by helpful comments and answer, I found the reason. I had the Native MathML Firefox add-on installed, I switched it off and everything renders correctly now, also I can access the MathJax menu. In fact this seems to be a bug in that add-on known from March 2020. It appears to be about inability of firefox@windows to handle explicit \\ in displayed maths - you can look at the source of the Integral representation of product of two Whittaker functions question you are talking about. I also see that it works just fine in firefox@linux (Firefox version 87.0). (It's not some kind of automatic wrapping broken, it's more basic) Edit: it was pointed out that it's invalid LaTeX in that equation, so this can be closed. • Not surprising, given that Windows treats \ differently, contributing to driving developers to insanity quite a lot :-) – Dima Pasechnik Jun 3 at 11:44 • Your answer gave me an idea. I edited that question and replaced the $$ with \begin{multline*} \end{multline*} (without touching the \\ ). It renders correctly in the preview. – მამუკა ჯიბლაძე Jun 3 at 11:45
• Oh dear, I didn’t notice that there were \\  inside $$...$$ without any proper environment. This is basically invalid syntax, and it is not supposed to work. (In actual LaTeX, it doesn’t produce a line break.) You seem not to have submitted the edit, so I will. – Emil Jeřábek Jun 3 at 12:56