ankitects/anki

Changing text alignment deletes MathJax block

Ouverte

#5 176 ouverte le 19 juil. 2026

 (1 commentaire) (0 réaction) (0 personne assignée)Rust (2 965 forks)batch import
good first issue

Métriques du dépôt

Stars
 (27 973 étoiles)
Métriques de merge PR
 (Merge moyen 4j) (68 PRs mergées en 30 j)

Description

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!

Guide contributeur