Jwrede / Anki-KaTeX-Markdown

Creates a new Basic and a new Cloze Note Type that support Markdown and KaTeX
74 stars 5 forks source link

Issue with formatting of C++ templated code #7

Closed puneetmatharu closed 3 years ago

puneetmatharu commented 3 years ago

Hi, thanks for the excellent add-on. However, I have a problem when trying to render the following C++ code in a code block:

a<b, c> m;

The code unexpectedly gets translated into the following on-screen code:

a<b, c=""> m;

and </b,> is added to the end of the text after the code block. Do you happen to know how to fix this? Thanks!

Jwrede commented 3 years ago

Anki really doesn't make it easy for me to clean all the text from HTML symbols, the problem you're talking about probably arises from Anki thinking your a<b, c> is an HTML tag. I think I managed to fix it for now, please tell me if it works now and also please tell me everytime you find a bug! Thanks for the report

puneetmatharu commented 3 years ago

That works a treat, thanks!

Jwrede commented 3 years ago

glad to hear that!