-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page crashes when using a long series of space characters #473
Comments
Happening to us too. Initially thought it was because of image rendering, but firefox throws an exception about recursion depth so I believe its the same issue |
Confirmed, ran into this with a block of SQL today that came from an IDE where whitespace was set to 4 spaces. The offending block of text:
It took ~9 seconds to render Tested here: https://probablyup.com/markdown-to-jsx/ |
also on 7.4.0 |
I tracked this issue (or maybe a similar one?) down to
being checked in Line 937 in acd970d
Tester for catastrophic backtracing: https://regex101.com/r/85LH2r/1 For me, a suitable testcase in index.compiler.spec.tsx is
|
…trings of spaces
Some combinations of plain string and long series of space characters causes too much recursion and crashes the page:
Tested here: https://probablyup.com/markdown-to-jsx/
The text was updated successfully, but these errors were encountered: