Skip to content

Ensure that unterminated HTML tags do not cause text to be dropped - #1652

Merged
waylan merged 1 commit into
Python-Markdown:masterfrom
facelessuser:bugfix/unclosed-tag
Oct 5, 2026
Merged

waylan merged 1 commit into
Python-Markdown:masterfrom
facelessuser:bugfix/unclosed-tag

Conversation

@facelessuser

Copy link
Copy Markdown
Collaborator

Ensure we handle both </ and </content such that content that comes after is not dropped.

Fixes #1651

Description

AI Assistance Disclosure

  • No AI tools were used in preparing this PR.
  • If AI tools were used, I have disclosed which ones, and fully reviewed and verified their output.

Checklist

Ensure we handle both `</` and `</content` such that content that comes
after is not dropped.

Fixes Python-Markdown#1651
@waylan
waylan merged commit 7c265bc into Python-Markdown:master Oct 5, 2026
15 of 16 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.

Text after an unclosed end tag such as </dev/null is dropped on Python 3.13.6+

2 participants