jackdewinter / pymarkdown

MIT License
70 stars 17 forks source link

New test cases for multiple-drops showing incorrect parsing issues. #1234

Open jackdewinter opened 1 day ago

jackdewinter commented 1 day ago

Related to: https://github.com/jackdewinter/pymarkdown/issues/1233

Prerequisites

Bug Report

Bug Type

Description

Upon parsing some of the tests with multiple level drops, the tests report:

# E           + C:\Users\jack\AppData\Local\Temp\tmp9hkgc2cp.md:6:3: MD040: Fenced code blocks should have a language specified (fenced-code-language)

This is an issue as both the start and end fenced indicators should be in the same level. This probably means that the parser is terminating after the opening fenced code block for some reason.

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?

Run one of the tests (after re-enabling the tests) listed in the comments.

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 comments.

Actual Behavior

The Markdown document is not handling multiple levels of container drops properly.

Expected Behavior

The Markdown document SHOULD handle multiple levels of container drops properly.

jackdewinter commented 1 day ago

Current list: