Skip to content

Conversation

@facelessuser
Copy link
Collaborator

  • Have parse_comment handle bad <!-- cases.
  • handle_comment only needs to handle the </ case for comments. Provide a more reliable way to calculate the index to check for this case.
  • Ensure override_comment_update is reset, just in case.

Resolves #1586

- Have `parse_comment` handle bad `<!--` cases.
- `handle_comment` only needs to handle the `</` case for comments.
  Provide a more reliable way to calculate the index to check for this
  case.
- Ensure `override_comment_update` is reset, just in case.

Resolves Python-Markdown#1586
@waylan waylan merged commit f925349 into Python-Markdown:master Jan 21, 2026
15 checks passed
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

Successfully merging this pull request may close these issues.

Markdown.markdown stuck in infinite loop <!-- leading to memory leaks

2 participants