# Bug: Mathjax/blockquote interaction

**URL:** <https://forums.ankiweb.net/t/bug-mathjax-blockquote-interaction/52395>\
**Category:** Help\
**Created:** [November 26, 2024, 3:54pm UTC](https://forums.ankiweb.net/t/bug-mathjax-blockquote-interaction/52395 "2024-11-26T15:54:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guoliang.oon](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@guoliang.oon](https://forums.ankiweb.net/u/guoliang.oon)\
**Post date:** [November 26, 2024, 3:54pm UTC](https://forums.ankiweb.net/t/bug-mathjax-blockquote-interaction/52395/1 "2024-11-26T15:54:06Z")

</div>

With the following raw html.

```html
<div><div><anki-mathjax></anki-mathjax><blockquote>a</blockquote></div></div>

```

Place your cursor to the right of the letter “a” (in the WYSIWYG). Then hit backspace.

The html will become

```html
<anki-mathjax><img src="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20id%3D%22mdi-math-integral-box%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cstyle%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3Esvg%20%7B%20color%3A%20black%3B%20fill%3A%20black%3B%20font-size%3A%2020px%3B%20%7D%3B%3C%2Fstyle%3E%3Cpath%20d%3D%22M19%203H5C3.9%203%203%203.9%203%205V19C3%2020.1%203.9%2021%205%2021H19C20.1%2021%2021%2020.1%2021%2019V5C21%203.9%2020.1%203%2019%203M15.9%206.9C15.9%206.9%2015.2%206.6%2014.9%206.6C14.3%206.5%2013.9%206.7%2013.7%207.7L12%2016.8C11.8%2017.6%2011.5%2018.2%2011%2018.6C10.6%2018.9%2010.2%2019%209.7%2019C8.9%2019%207.7%2018.5%207.7%2018.5L8.2%2017.1C8.2%2017.1%209%2017.4%209.2%2017.4C9.5%2017.5%209.7%2017.4%209.9%2017.3C10.1%2017.2%2010.2%2016.9%2010.3%2016.6L11.9%207.4C12%206.6%2012.4%206%2012.9%205.5C13.5%205.1%2014.2%205%2015%205.1C15.7%205.2%2016.5%205.6%2016.5%205.6L15.9%206.9Z%22%2F%3E%3C%2Fsvg%3E" class="mathjax svelte-npojru empty" alt="Mathjax" title="MathJax" data-anki="mathjax" data-uuid="bd012e03-a578-40e8-bad5-a7ff077fb20f" style="--vertical-center:5px; --font-size:20px;"></anki-mathjax><blockquote><br></blockquote>

```

It will look like this:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/7/f/7fd7c94aeaa5eaafe4b082abac65e35a6b555336.png)

This is a minimal example. In practice the occurrence of the bug messes up _all_ the mathjax in the note.

The bug does not happen with only 1 non-nested `<div>`.

Version ⁨24.06.3 (d678e393)⁩  
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [November 28, 2024, 12:15am UTC](https://forums.ankiweb.net/t/bug-mathjax-blockquote-interaction/52395/2 "2024-11-28T00:15:36Z")

</div>

Logged on [Bug with Mathjax/blockquote interaction · Issue #3601 · ankitects/anki · GitHub](https://github.com/ankitects/anki/issues/3601)

---

<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, 12:39pm UTC](https://forums.ankiweb.net/t/bug-mathjax-blockquote-interaction/52395/6 "2024-12-28T12:39:30Z")

</div>

Closed on December 28, 2024, 12:39pm UTC

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