Mathjax doesn't fit

Long inline mathjax equations don’t fit on ankidroid when reviewing. The first image is the default zoom when reviewing and the second image is zoomed out to see the full equation. I don’t have any html or css related to mathjax in my cards.

Check out this solution Inappropriate MathJax rendering in AnkiMobile - #6 by anon15424829.

Edit: some tall math symbols were clipped using that solution so I added some padding. I also made the scrollbar thinner:

mjx-container {
  overflow-x: scroll;
  max-width: 100%;
  padding: 5px;
}
 
mjx-container::-webkit-scrollbar {
  height: 5px !important;
}

Edit2: apparently MathJax v4 has automatic line breaking. So this should be fixed along with Investigate MathJax 4.0 · Issue #4277 · ankitects/anki · GitHub.

1 Like

Is it possible that only works on mathjax blocks and not inline mathjax?

Yeah, apparently inline elements can’t be scrolled.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.