ankitects/anki

Changing text alignment deletes MathJax block

Offen

#5.176 geöffnet am 19.07.2026

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.965 Forks)batch import
good first issue

Repository-Metriken

Stars
 (27.973 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T) (68 gemergte PRs in 30 T)

Beschreibung

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!

Contributor Guide