ankitects/anki

Changing text alignment deletes MathJax block

开放

#5,176 创建于 2026年7月19日

 (1 条评论) (0 个反应) (0 位负责人)Rust (2,965 个派生)batch import
good first issue

仓库指标

星标
 (27,973 个星标)
PR 合并指标
 (平均合并 4天) (30 天内合并 68 个 PR)

描述

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!

贡献者指南