mixmark-io / turndown

🛏 An HTML to Markdown converter written in JavaScript
https://mixmark-io.github.io/turndown
MIT License
8.52k stars 864 forks source link

Large code blocks would trigger 100% CPU #429

Closed martincizek closed 1 year ago

martincizek commented 1 year ago

Converting the html below triggers a serious performance issue. Originally submitted as PR #427.

<pre><code>TEST
(large amount of whitespace here)
    END</code></pre>