ankitects/anki

Changing text alignment deletes MathJax block

Aperta

#5176 aperta il 19 lug 2026

 (1 commento) (0 reazioni) (0 assegnatari)Rust (2965 fork)batch import
good first issue

Metriche repository

Star
 (27.973 stelle)
Metriche merge PR
 (Merge medio 4g) (68 PR mergiate in 30 g)

Descrizione

In the Add screen, changing the alignment of text with a MathJax block directly on the line below it causes the MathJax block to be deleted.

Produced on https://github.com/ankitects/anki/releases/tag/26.05 on Pop!_OS 24.04 LTS

To recreate, suppose:

Move text cursor to within the top line of text, then click to change text alignment (in this case to centred, but this happens regardless of which alignment):

Result - MathJax block deleted:

I'm happy to work on this as a first issue if accepted!

Guida contributor