2.1.54 bug report: insert inline mathjax moves cursor outside cloze

I’ve recently found a frustrating bug, when I’m studying a deck, and then go to edit a card while studying (because I noticed something about it I’d like to update): if I want to insert a mathjax expression inside a cloze, if I press “ctrl+m, m”, then it jumps the cursor from where it was (inside the cloze), to outside the cloze, before opening the mathjax dialog box. Further, it often seems to mess up formatting if I then do ctrl+z to undo or something.

Here’s an example: my cursor was between “model” and “of” (you can see I already had a double space there to make space for the new mathjax I was creating), then I did ctrl+m, m, to create one, but it appears after the cloze.

It also happens if I instead press the “f_x” button and choose mathjax inline.

I swear this wasn’t happening a little while ago… I’ve always used this hotkey and would’ve noticed it.

Debug info:

    
    Anki 2.1.54 (b6a7760c) Python 3.9.10 Qt 6.3.1 PyQt 6.3.1
    Platform: Linux
    Flags: frz=True ao=True sv=2
    Add-ons, last update check: 2022-11-20 11:29:15
    
    
    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    Edit LaTeX build process ['937148547', 2020-05-19T10:53, 'None', '']
    Image Occlusion Enhanced ['1374772155', 2022-04-09T03:15, 'None', '']
    Syntax Highlighting for Code ['1463041493', 2020-07-06T14:48, 'None', '']
    
    ===IDs of active AnkiWeb add-ons===
    1374772155 1463041493 937148547
    
    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    

I can’t reproduce the issue. Either it’s an add-on causing the problem, or the issue has been fixed in the beta version.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.