Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

facelessuser
Copy link
Contributor

@facelessuser facelessuser commented Jul 2, 2025

Markdown recently made a fix for an issue handling </> which would get stripped out of content. Reference:
Python-Markdown/markdown@64a3c0f

MkDocs uses Markdown's monkey-patched HTMLParser, but does not use the HTML extractor that has the logic to handle the things that have been monkey-patched in. Because of this, MkDocs now fails when parsing </>. This fixes the issue by adding the same logic to handle the issue that Markdown uses.

Fixes #4001

Markdown recently made a fix for an issue handling `</>` which would get
stripped out of content. Reference:
Python-Markdown/markdown@64a3c0f

MkDocs uses Markdown's monkey-patched HTMLParser, but does not use the
HTML extractor that has the logic to handle the things that have been
monkey-patched in. Because of this, MkDocs now fails when parsing
`</>`. This fixes the issue by adding the same logic to handle the issue
that Markdown uses.
@facelessuser
Copy link
Contributor Author

This fixes #4001

@facelessuser
Copy link
Contributor Author

@tomchristie is this project still being maintained? I'd love to see this bug fix get merged and released.

@maxpollack
Copy link

+1, this broke our team's internal docs build. can this get merged?

@facelessuser
Copy link
Contributor Author

It seems I am unable to push this forward. I am willing to provide changes and updates if the Mkdocs team is willing to engage. If not, I guess we are not getting this fix.

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.

AssertionError: we should not get here! from html.parser with Python 3.13.5

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.