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 合併指標
 (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!

貢獻者指南