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 AssertionError on malformed HTML (#584) #587

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

Crozzers
Copy link
Contributor

This PR fixes #584 by performing better matching of malformed HTML in _hash_html_block_sub.

The issue occurred when the closing angle bracket was on a newline compared to the rest of the tag. I fixed this by tweaking the regex to allow whitespace and newlines between the main body of the tag and the closing bracket

@nicholasserra
Copy link
Collaborator

Thank you!

@nicholasserra nicholasserra merged commit adfc3fc into trentm:master Jul 5, 2024
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.

Crash when parsing malformed html in markdown
2 participants