Parsing Issue: Edge case with starting a new list "inside" of a block quote not handled properly.
Closed this issue · 0 comments
Prerequisites
- Are you running the latest version of this application?
- Have you checked the Frequently Asked Questions document?
- Have you simplified the bug report to the essential details?
- Do you have a distinct command line to report?
- Can you clearly state the configuration for this bug report?
- Do you have a minimal document that highlights this bug?
- Are any required files (configuration or Markdown document) attached to the issue?
- Did you perform a cursory search of other issues to look for related issues?
Bug Report
Bug Type
- Parsing Issue
Description
The logic to detect a start of a new list is slightly off in a specific case. In that case, a pair of block quotes are started with 3 spaces between them. On the next line, the initial block quote is continued, but is followed by an unordered list start and then the second block quote. Currently, the list start is overlooked.
Specifics
What operating system and version are you running into this behavior on?
Win11
What version are you seeing this behavior in? (Run pip list
or pipenv run pip list
and look for the entry beside pymarkdownlnt
.)
latest, main
Are there any extra steps that need to be taken before executing the application?
No
What is the command line you invoke to get this behavior?
test_extra_051cb
Are you using a configuration file? Either on the command line or one of the implicit configuration files? If so, attach that file to this issue.
No
What Markdown document causes this behavior to manifest? Attach that file to this issue.
> + >
> > fred2
> + > barney
Actual Behavior
The behavior is as described above. The +
character on line 4 is glossed over.
Expected Behavior
Line 4 should terminate the second BQ, then open a new unordered list and a new block quote.