-
Notifications
You must be signed in to change notification settings - Fork 601
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
Fix for issue russross/blackfriday#239 #372
Conversation
Looks good. How does it work with an unclosed code block? Like this:
That's a malformed markdown, of course, and any behavior is almost as good as any other, but I want to make sure no source text gets omitted. |
I'll check... also, are there any issues with markdown parsing options, so that this needs to be turned on or off? |
Oh I'm glad you asked, because it slipped my attention. Looks like your fix should be conditional and do nothing with And while you're at it, can you please add a test case for a non-fenced code block with sublist-like content? |
Looking forward to this getting merged. Thanks for working on the fix! |
Add tests for #372 and gate code with FencedCode
This is a backport of the initial fix in v2 (#372).
This is a backport of the initial fix in v2 (russross#372).
Fix for issue #239
This appears to also work in V1, although this PR is for V2
The following would confuse the
- codeline
as if it were a start of a nested list.The PR checks if a code fence is found, and don't use code to figure out if a list item has ended.
a code review is most welcome as I'm sure I'm missing something.
thanks!
n