ankitects/anki

Changing text alignment deletes MathJax block

オープン

#5,176 opened on 2026/07/19

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (2,965 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (27,973 個のスター)
PR merge metrics
 (平均マージ 4d) (30d で 68 merged PRs)

説明

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!

コントリビューターガイド