-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Exception caused in custom plugin altering parsing rules #376
Comments
My suspicion is that after 5 levels of parsing blockquote, the IMO, this can be guarded against with a None check of Happy to submit a patch a try-except to guard works. |
@maxking A pull request is welcome. |
We have a custom plugin that we use to disable all the parsing rules, except
block_quote
. The way we have implemented this is:This causes an exception in the situation when the block_quote nesting depth increases the max_nesting_depth value (6 is the default in mistune).
So, a text like:
will raise an exception like below (few lines of traceback is removed, full traceback can be found here)
The text was updated successfully, but these errors were encountered: