-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make sure that font size does not increase #21
Comments
Hi! As always it's virtually impossible to help if you can't reproduce the problem minimal example which can be inspected. When you say "coming from the backend", do you mean that you use SSR (server-side rendering) or that you make an API call and receive the math content as a JSON? I have never experienced the problem you're talking about but even with answers to the above question, I would need some working project or mock or SOMETHING where the problem is showing. But if you have an equation A which is then replaced with equation B, and the Try to create a minimal reproduction or at least point me to some code. |
@fast-reflexes Does any solution come to mind, for this? I thought of fixing it using when mathjax loads forefully reduce the font size this way
but either the call happens to soon, or somehow mathjax resets itself, it works for 60% of the time |
A solution to this must be within reach and not as complicated as the above one. Could you duplicate the page where this bug shows, and remove as much content as possible while making sure that this bug keeps showing. Then try to replace the imported components with their content and continue removing as much as you can until you can't remove anything else (but the bug is still visible). Then go to codesandbox.io and create a sandbox with the content so that I can see it in action. |
MathJax will automatically (try to) match the ex-heights of its font and the surrounding font. I suspect it's working as expected, i.e., the ex-heights match. You could try comparing x and In some cases (e.g., bad metadata in some google fonts, typesetting detached or hidden nodes) MathJax's ex-height detection can fail. In that case, you can try to adjust the |
I have dynamic equation content coming from the backend.
Sometimes, it is just
"The equation you are solving for"
"$math content$"
and sometimes it is
$\text{Compare} ax^2+bx+c \text{is a working to} px^2+qx+d
Whats happening is the first one gets rendered fine but the second one gets its font increased everywhere and I have to render both 1 and 2 in the same page making the change look drastic.
Is there a way to force mathjax to not increase the font size?
The text was updated successfully, but these errors were encountered: