Closed sudogoku closed 1 year ago
Also just adding that this plugin works perfectly for me otherwise! If I remove all MathJax, apply the code highlighting, and then add the MathJax back in, everything works as expected.
Additionally, manually pasting the HTML around the text I'm trying to highlight works as well.
Thank you for reporting. I'll take a look as soon as I have available time.
Mhm, I can reproduce it, looking into the root cause.
Hi! First off, just want to say thank you for an awesome Anki plugin. This is super helpful for a lot of CS-related studying.
Bug description When syntax highlighting code, on some notes it causes Anki's browse window to become unresponsive. The main Anki window still works, but I am unable to close the browse window without force quitting Anki. After reopening the card I was trying to add code highlighting to, I can see the selected text generated this code (which is incomplete compared to working code blocks I have in other Anki notes).
rather than:
Reproduction steps Steps to reproduce the behavior:
<anki-mathjax>text</anki-mathjax>
.Card template Not sure if this is relevant, but supplying in case it helps.
Expected behavior Edit window should still be responsive and the correct HTML should be applied to the selected text.
Card template My card template is pretty simple. Front:
Back:
Styling is also simple, so likely unrelated:
Additional information