Skip to content

Fix automatic links split by HTML entities - #449

Open
ryanchou1994 wants to merge 1 commit into
Alir3z4:masterfrom
ryanchou1994:fix/autolink-ampersand
Open

ryanchou1994 wants to merge 1 commit into
Alir3z4:masterfrom
ryanchou1994:fix/autolink-ampersand

Conversation

@ryanchou1994

Copy link
Copy Markdown

Changes

  • Buffer eligible automatic-link labels until the complete anchor text is available.
  • Preserve regular-link output when the label differs, contains nested markup, or automatic links are disabled.
  • Add regression coverage for HTML entities, streamed parser input, and escaping options.

Fixes #441

Tests

  • uv run --with pytest pytest -q (200 passed)
  • Linux python:3.13 container, pytest -q (200 passed)
  • black --check --diff html2text/__init__.py test/test_html2text.py
  • flake8 html2text/__init__.py test/test_html2text.py
  • isort --check-only --diff html2text/__init__.py test/test_html2text.py
  • mypy --strict html2text

Copilot AI lite review requested due to automatic review settings September 21, 2026 21:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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.

Ampersand in link causes different markdown to be generated vs. non-ampersand link

2 participants