quantizor / markdown-to-jsx

🏭 The most lightweight, customizable React markdown component.
https://markdown-to-jsx.quantizor.dev/
MIT License
1.96k stars 169 forks source link

Nested UL crash rendering #586

Open imsamdez opened 2 months ago

imsamdez commented 2 months ago

I'm passing the following HTML string that contains a 3 level nested ul to markdown-to-jsx

<p>Test</p><ul><li>Test<ul><li>Test<ul><li>Test</li></ul></li><li>Test</li></ul></li><li>Test</li></ul><p>ezkef</p><ul><li>zefzef<ul><li>zefz<ul><li>zefzef</li><li>zef</li></ul></li><li>zef</li></ul></li><li>zef</li></ul>

Unfortunately, it seems that the lib struggle rendering. It freezes for a while and finally render the string. But, if i remove one level of ul to have only a 2 level nested ul there is no issue.

Is it a known bug? Thanks for your help!