Copying MathJax between editors in different Anki windows gives `<img alt="MathJax" src=""/>`

When I copy the contents of a note editor field from the editor in the Browse window to the one in the Add field, or vice versa, each piece of inline (and probably block) MathJax becomes an undefined image, in HTML: <img alt="MathJax" src=""/>.

It would be more helpful if the MathJax code could somehow be carried across, e.g. in some data- attribute or even the alt attribute of the image, then parsed correctly back into editable MathJax in the destination window.

My system information
Anki:
    Version <U+2068>24.06.3 (a5c90890)<U+2069>
    Python 3.12.4 Qt 6.7.2 PyQt 6.7.0
Operating System:
    EndeavourOS Linux
    KDE Plasma Version: 6.1.2
    KDE Frameworks Version: 6.3.0
    Qt Version: 6.7.2
    Kernel Version: 6.9.7-arch1-1 (64-bit)
    Graphics Platform: Wayland

I can also reproduce the same bug on Windows 11.

Please see In Editor, MathJax Inserted Just Before Other MathJax Causes Unattached Dialog - #2 by dae

1 Like

Dupe Can't copy-paste mathjax from browser to "add note" · Issue #2944 · ankitects/anki · GitHub

1 Like

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