You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Double drop of containers back to zero containers not working properly. #1259
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
Please replace any of [these areas] in the paragraphs below with the requested information.
Bug Type
Assertion Failure
Parse Failure
Description
Specifically, in verifying the tokenization for new tests for rule Md012, came across a series of tests that were either asserting or not parsing correctly. The set of tests that were added (test_extra_051*) went through the variations on containers such as:
> abc
> def
and inserting a blank line between the two. To bring it into line with Md012, the "abc" was removed to create what looks like a double blank line. In testing these combinations, ~70% of them passed. The remaining tests either did not parse correctly or raised an assert.
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_51*
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.
See the test_extra_051* series of tests.
Actual Behavior
The observed behavior was a mix of passing (good), bad parsing (not so good), and asserts (real bad).
Expected Behavior
All these combinations of creating nested containers and then adding a blank line to remove most of those containers should pass.
Activity
https://github.com/jackdewinter/pymarkdown/issues/810
https://github.com/jackdewinter/pymarkdown/issues/1259
Issue 810 (#1260)