[2 Bugs] Strange behaviors when combining MathJax inline and centered text

As the title says, there seem to be some strange/buggy behavior when you combine the two.

To see what I mean, set your card to be centered, type anything and them press ctrl + M, M to write some math. It goes to a new line that is left-aligned, instead of simply continuing from the place where your cursor is. This makes typing math symbols in a phrase a very tedious task.

The other problem is the following: center your text, type ctrl+M,M, use your right-arrow key to leave the mathbox and try to start a new line by pressing enter. It does nothing unless you first type something else.

I’m using Version ⁨2.1.53 (96bacf79)⁩, Python 3.9.7 Qt 5.15.2 PyQt 5.15.5. Let me know if I should provide any more details.

Thanks.

1 Like

Added to inline mathjax creates new line inside center envirnoment · Issue #1900 · ankitects/anki · GitHub

1 Like