Skip to content
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

Assert: Nested block quote inside of list blocks inside of block quotes throws assert. #1141

Closed
9 tasks done
jackdewinter opened this issue Aug 4, 2024 · 1 comment
Closed
9 tasks done

Comments

@jackdewinter
Copy link
Owner

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

  • Assertion Failure

Description

In cases where the is a list block between two block quotes, normal lines can cause an assert.

Specifics

What operating system and version are you running into this behavior on?

N/A

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 branch

Are there any extra steps that need to be taken before executing the application?

test_extra_044mcv0

What is the command line you invoke to get this behavior?

test_extra_044mcv0

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.

> + > -----
>   > > block 1
>   > > block 2
>   > -----
>   > ```block
>   > A code block
>   > ```
>   > -----
> + another list

Actual Behavior

When the parser encounters line 3, it asserts because of the gap between the first block quote and the third block quote. The assert hit was to warn that this code had not yet hit any circumstances where we could test this and needs to be addressed.

Expected Behavior

Should cleanly parse.

@jackdewinter
Copy link
Owner Author

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant