A couple bugs with wide MathJax blocks

Originally: Wide Mathjax is cut off in RTL · Issue #22909 · ankidroid/Anki-Android · GitHub.

Also tested on Anki Desktop 26.09.3.

1

Make a basic note with the front being

مرحبا
\[\forall \varepsilon > 0 \exists N \in \mathbb N \text{s.t. } \forall n,m \ge N |x_n-x_m| \le \varepsilon\].

The user can’t scroll the screen or (on AnkiDroid) zoom out to see the rest of the Mathjax.

Also, given that the Mathjax is in English, it should be cut off on the right side of the screen.

2

In LTR, there’s no padding to the right when we zoom out:

This is a side effect of the text direction of the whole card being right to left.

It looks like MathJax 4 has automatic line breaking, so this is something to look into when we upgrade: Investigate MathJax 4.0 · Issue #4277 · ankitects/anki · GitHub