MathJax formulas are not rendered

Hello, I want to ask if what I’m experiencing is a bug or if I can solve it in another way. When importing many cards from a csv file that has MathJax, in Anki it doesn’t render in the Front, only in the Back, at least for the basic card example, as I show in this video that clarifies it.

As you can see, the content that was in the csv has MathJax, the only way that worked for me to solve it is to open the cards one by one, delete any of the numbers and re-enter them, this way the formula is updated and only then it is rendered, but doing this for each one is not practical at all, it wouldn’t make sense to have created these exercises in cards in large quantities and quickly if you can’t see them later.

1 Like

The 2 places you should look for issues like this are your card templates and the HTML of your fields.

If it’s safe to assume that you’re importing into an unmodified “Basic” note type, then it’s not the templates.

But you should definitely take a look at the underlying HTML that is getting imported into your fields. From that preview of your CSV in the center of the screen, you’re not formatting your MathJax correctly.

Hi, thanks for answering

Yes, it is a basic card without modifications, and no addon is installed

The HTML code that contains the mathjax syntax seems to be fine because I first tested it in anki and then copied it and applied it to the cells in the CSV file

I think it may be something that needs to be corrected, since as I mentioned it only happens to me in the front but not in the back, I already tried importing having only one number in the front, as simple as that:

3

but it still doesn’t load it, I have to edit it manually in anki and only then it loads it

1 Like

I suppose if you don’t want to believe us or dae, you can create a working MathJax note in Anki manually, export that as plain text, and look at the file to see what Anki expects to see in an import file.

Now I understand.
https://forums.ankiweb.net/t/mathjax-not-displaying-correctly-in-anki-desktop-v24-06-3-inconsistent-rendering-issue/50238/3 I read it and realized, thank you very much @brainravens and @Danika_Dakika :muscle:

2 Likes