Skip to content

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