Closed petermarks12 closed 1 year ago
Not immediately helpful but just fyi: MathJax v4 will add support for linebreaks again, see https://github.com/mathjax/MathJax-src/releases/tag/4.0.0-alpha.1#linebreaking.
Never encountered this before when you only have one MathJaxContext
so the obvious questions are whether you are importing some other library that uses better-react-mathjax
as well or if you have forgotten something? That message is literally only displayed when the MathJaxContext
encounters an existing MathJaxBaseContext
with a version different than the one you have explicitly set. Try to simulate the problem in a codesandbox and I can have a look :)
I have checked it multiple times, but seems there is no other MathJax context. I will try to simulate the problem in codesandbox. So far for the wrapping issue, i have found the following solution and it seems to be working.
mjx-math.MJX-TEX {
white-space: normal !important;
line-height: 0.5 !important;
}
Try to comment out code, piece by piece until you ONLY have the MathJaxContext left in the app and see when the error disappears.
Feel free to reopen if you can provide more detail. For now, it's not possible to trouble-shoot.
I have an equation that is not wrapping on mobile devices and resulting in horizontal scroll bar. I have tried to look for possible solution and but most of them referring to use Mathjax v2. I tried to do the same on Next JS app and constantly getting this error. Code and error are given below.
Note: I am not using any other MathJax context in my entire app. There is only 1 context defined in the _app.js
`