Markdown mode code block annotation Chinese, there is an infinite recursive bug

Hello! Thank you very much for providing such an excellent editor!

In markdown, I tried to enter Chinese comments, and there was an infinite recursion bug. This is a simple example of my compressed file

This is a very simple example for me. You can download this case, start index.html as a service, and then input Chinese to see the same effect as GIF image

download zip

codemirror-next.zip

Thanks for providing a demo case. I didn’t manage to reproduce any infinite loop with that though. I did notice that text composition broke, and the editor would create overly deep DOM structures, so maybe I was seeing a related bug. This patch addresses that. Could you take a look to see if it solves your problem?

Hello, I used the patch you prompted for testing, this patch solves this problem, thank you very much!

Great, thanks for confirming.