# MathJax formulas are not rendered

**URL:** <https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454>\
**Category:** Help\
**Created:** [November 27, 2024, 9:03pm UTC](https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454 "2024-11-27T21:03:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonel](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@Leonel](https://forums.ankiweb.net/u/Leonel)\
**Post date:** [November 27, 2024, 9:03pm UTC](https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454/1 "2024-11-27T21:03:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [November 27, 2024, 9:42pm UTC](https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454/2 "2024-11-27T21:42:35Z")

</div>

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.

> [@MathJax Not Displaying Correctly in Anki Desktop (v24.06.3) - Inconsistent Rendering Issue](https://forums.ankiweb.net/t/mathjax-not-displaying-correctly-in-anki-desktop-v24-06-3-inconsistent-rendering-issue/50238/3):
>
> \<anki-mathjax\> is not valid syntax, and is only used internally by Anki. You should use \( ... \) instead if you are importing material into Anki.

---

<div class="post-metadata">

**Author:** ![Leonel](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@Leonel](https://forums.ankiweb.net/u/Leonel)\
**Post date:** [November 27, 2024, 10:58pm UTC](https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454/3 "2024-11-27T22:58:00Z")

</div>

Hi, thanks for answering

> [@Danika\_Dakika](#):
>
> If it’s safe to assume that you’re importing into an unmodified “Basic” note type, then it’s not the templates.

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

> [@Danika\_Dakika](#):
>
> 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.

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

---

<div class="post-metadata">

**Author:** ![brainravens](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/brainravens/32/23118_2.png) [@brainravens](https://forums.ankiweb.net/u/brainravens)\
**Post date:** [November 27, 2024, 11:20pm UTC](https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454/4 "2024-11-27T23:20:53Z")

</div>

> [@Leonel](#):
>
> I think it may be something that needs to be corrected

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/2/2/229572db0462a58ff7127d249c9fe07b9b93ce6a.png)

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [November 27, 2024, 11:29pm UTC](https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454/5 "2024-11-27T23:29:33Z")

</div>

> [@Leonel](#):
>
> 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 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.

---

<div class="post-metadata">

**Author:** ![Leonel](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@Leonel](https://forums.ankiweb.net/u/Leonel)\
**Post date:** [November 28, 2024, 10:56pm UTC](https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454/6 "2024-11-28T22:56:20Z")

</div>

Now I understand.  
[https://forums.ankiweb.net/t/mathjax-not-displaying-correctly-in-anki-desktop-v24-06-3-inconsistent-rendering-issue/50238/3](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 💪

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [December 28, 2024, 10:57pm UTC](https://forums.ankiweb.net/t/mathjax-formulas-are-not-rendered/52454/7 "2024-12-28T22:57:14Z")

</div>

Closed on December 28, 2024, 10:57pm UTC

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