Skip to content

🐛 FIX: Restore the upstream inline linkify progress guard - #471

Open
sogav21 wants to merge 1 commit into
executablebooks:masterfrom
sogav21:codex/fix-markdown-it-470-linkify-progress
Open

sogav21 wants to merge 1 commit into
executablebooks:masterfrom
sogav21:codex/fix-markdown-it-470-linkify-progress

Conversation

@sogav21

@sogav21 sogav21 commented Nov 16, 2026

Copy link
Copy Markdown

With linkify enabled, malformed link or image labels can return a successful match without advancing the parser, causing a progress error. Restore the missing URL-length guard from markdown-it 14.1.0 and add regressions, preserving the generic parser progress guards.

Validation:

  • New regressions on BASE: 24 failed, 4 passed; patched focused/progress suite: 37 passed.
  • Full tox suites: 1,217 passed each on Windows Python 3.10.20 and 3.14.6 with PYTHONUTF8=1. Default cp1252 has two encoding failures reproduced on BASE.
  • Repository pre-commit checks, wheel/sdist build and strict Twine checks pass. An independent review compared 1,479 HTML cases with markdown-it 14.1.0, all matching.

AI assistance: investigation, implementation and tests used OpenAI Codex (gpt-6.1-sol/high), with independent review by gpt-6-astra/high. Other platform/plugin matrices and hosted CI have not been run locally.

Fixes #470.

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.

linkify rule matches without advancing inside a link label (hang in 4.2.0, RuntimeError in 4.3.0)

1 participant