Skip to content

Fix complex scenarios with lists and admonitions #1006

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

Merged
merged 4 commits into from
Jul 26, 2020

Conversation

facelessuser
Copy link
Collaborator

Add better logic to admonitions to account for more complex list cases

Fixes #1004

Add better logic to admonitions to account for more complex list cases

Fixes Python-Markdown#1004
@facelessuser facelessuser added the work-in-progress A partial solution. More changes will be coming. label Jul 26, 2020
- If we match the header, we don't need to get the sibling
- If we tested and found the sibling, cache the info so that when we
  run the processor, we get the sibling we just found.
- Also save away stripped indentation that we calculated when verifying
  the last sibling so we can quickly format the text we need to process.
@waylan waylan merged commit 611cf6d into Python-Markdown:master Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work-in-progress A partial solution. More changes will be coming.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug related to Admontion and List Interaction
2 participants