# Bug: math equations in cloze

**URL:** <https://forums.ankiweb.net/t/bug-math-equations-in-cloze/47402>\
**Category:** Help\
**Created:** [July 23, 2024, 2:27pm UTC](https://forums.ankiweb.net/t/bug-math-equations-in-cloze/47402 "2024-07-23T14:27:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![natema](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/natema/32/5984_2.png) [@natema](https://forums.ankiweb.net/u/natema)\
**Post date:** [July 23, 2024, 2:27pm UTC](https://forums.ankiweb.net/t/bug-math-equations-in-cloze/47402/1 "2024-07-23T14:27:14Z")

</div>

When I create a math equation in a cloze, if it contains more than one nested bracket pair then it’s not displayed correctly after the card is created (the inline displaying works correctly but the bug is already visible in the preview).  
For example `{{c1::<anki-mathjax>{a}</anki-mathjax>}}` is displayed correctly, while `{{c1::<anki-mathjax>{{a}}</anki-mathjax>}}` results in  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/1/e1da91154a4fea3ac77ef62ed66b4a26c611f7c0.png)

I’m on Anki Version ⁨23.12.1 (1a1d4d54)⁩ on Linux Fedora 40 machine.

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [July 23, 2024, 4:27pm UTC](https://forums.ankiweb.net/t/bug-math-equations-in-cloze/47402/2 "2024-07-23T16:27:34Z")

</div>

### [Cloze Conflicts](https://docs.ankiweb.net/math.html#cloze-conflicts)

---

<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:** [August 22, 2024, 4:28pm UTC](https://forums.ankiweb.net/t/bug-math-equations-in-cloze/47402/3 "2024-08-22T16:28:02Z")

</div>

Closed on August 22, 2024, 4:28pm UTC

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