# Anki Version(s)

Version 23.12 (edd38ca0)

ANDVersion 23.10.1

Python 3.9.15 Qt 6.6.1 PyQt 6.6.0

# Description

While adding cards, it stopped responding as I was typing the LaTeX inline brackets (MathJax inline formula) `\( \)`

in the following position:

After typing, the tab will freeze, leaving no option but to force quit Anki.

# Reproduce

As I try to figure out how to reproduce this bug (I guess), I found whether images are shown is affecting this bug.

Pasting the first code to the HTML editor and reproduce my actions (add backslash and left brackets) will cause it to freeze, while the second will act properly.

```
<div>解得 <anki-mathjax>x=1, y=1</anki-mathjax>,</div>
<div>由此可得直线系横过点 <anki-mathjax>A(1,1)</anki-mathjax></div>
<div><img src="paste-fc507a8aab426d36542c44c60e9ee4943222446b.png"><br></div><div>由图，A点为垂足时距离最大。</div><div>因此<anki-mathjax>P</anki-mathjax> 到直线 <anki-mathjax>l</anki-mathjax> 的最远距离为 <anki-mathjax>|P A|,</anki-mathjax></div><div><anki-mathjax>|P A|=\sqrt{(1+3)^2+(1+1)^2}=2\sqrt{5}</anki-mathjax>.</div>
```

```
<div>解得 <anki-mathjax>x=1, y=1</anki-mathjax>,</div>
<div>由此可得直线系横过点 <anki-mathjax>A(1,1)</anki-mathjax></div>
由图，A点为垂足时距离最大。<div>因此<anki-mathjax>P</anki-mathjax> 到直线 <anki-mathjax>l</anki-mathjax> 的最远距离为 <anki-mathjax>|P A|,</anki-mathjax></div><div><anki-mathjax>|P A|=\sqrt{(1+3)^2+(1+1)^2}=2\sqrt{5}</anki-mathjax>.</div>
```