ankitects/anki

Changing text alignment deletes MathJax block

Aberta

#5.176 aberto em 19 de jul. de 2026

 (1 comentário) (0 reação) (0 responsável)Rust (2.965 forks)batch import
good first issue

Métricas do repositório

Stars
 (27.973 estrelas)
Métricas de merge de PR
 (Mesclagem média 4d) (68 fundiu PRs em 30d)

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!

Guia do colaborador