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

Fix handling of bogus comments. #1426

Merged
merged 3 commits into from
Jan 3, 2024
Merged

Fix handling of bogus comments. #1426

merged 3 commits into from
Jan 3, 2024

Conversation

waylan
Copy link
Member

@waylan waylan commented Jan 3, 2024

As with most implementations, we now pass through bogus comments (as defined by the HTML Spec) unaltered except that they are HTML escaped. This deviates from the reference implementation which compeltely ignores them. As the reference implementation seems to not have even contemplated their existance, it is not being used as a reference in this instance. Fixes #1425.

waylan added 2 commits January 3, 2024 12:04
As with most implementations, we now pass through bogus comments (as
defined by the HTML Spec) unaltered except that they are HTML escaped.
This deviates from the reference implementation which compeltely ignores
them. As the reference implementation seems to not have even contemplated
their existance, it is not being used as a reference in this instance.
Fixes Python-Markdown#1425.
@waylan waylan requested a review from facelessuser January 3, 2024 18:10
@waylan waylan merged commit e466f38 into Python-Markdown:master Jan 3, 2024
@waylan waylan deleted the 1425 branch January 3, 2024 18:25
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.

Python Markdown turns </#rrggbb> into HTML comment, even while in inline code
3 participants