Too many blank lines after a foot note freezes Kramdown binary #256
Labels
Comments
Thanks for the bug report! I will look into it! |
The problem comes from the regular expressions used in kramdown. Since Ruby uses a backtracking Regexp engine some regular expressions can take more time than expected. I have changed a regular expression to use an atomic group to avoid needless backtracking and this has fixed the bug and the huge amount of time it took to process your test case. The fix also passes all of kramdown's test cases In addition normal code block matching should also be faster in pathological cases. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I process following content with Kramdown, it freezes.
Here is my command:
Interestingly, it doesn't freeze when I reduce the number of blank lines.
Following input works just fine, although it takes more time than normal.
My environment:
The text was updated successfully, but these errors were encountered: