Closed icearchimage closed 3 years ago
Hey I really appreciate the effort you put into this issue, makes it alot easier to debug!
I think I fixed the bug now, you're right it's because of Anki 2.1.42, they must've changed the rendering process for cards, now it saves js variables on reload and my getScripts
variable is declared everytime on render which javascript doesn't like.
Please let me know if this fixed your issue, I think you'll have to click on search for updates manually by clicking
Tools -> Add-ons -> Check for Updates
because Anki takes a day or two to do it manually.
Okay there's also another error with the auto-render plugin for KaTeX, give me another minute
Ok after much more time than I expected I think i fixed the error, on my PC it's working now, I'd appreciate it if you could give me feedback!
It works now! Really appreciate your work. Sorry for demanding a quick fix for such a new Anki version.
Perfect, I appreciate all issues here, in the moment I sadly don't have time to test the Add-on extensively so and Anki is a program with alot of edge cases!
For the front side, it can render correctly if the content only contains markdown syntax. But if I add a math equation, it shows the content only once (It does not render even after restarting Anki). The backside shows only a horizontal line. When I switched to the backside and then switch back to the front preview again, the front side becomes blank too.
I installed the add-on "Ankiwebview Inspector" and this is the output of the console:
Screenshot:
Have you tried to test the add-on on a newly installed Anki? Maybe some other add-ons can affect the result. I tried in a virtual machine and the result is the same.
Versions: Windows 10 1607(VMware), Anki 2.1.42