Skip to content

[5.x] Fix markdown tests - #15162

Merged
jasonvarga merged 3 commits into
5.xfrom
fix-markdown-test
Aug 11, 2026
Merged

jasonvarga merged 3 commits into
5.xfrom
fix-markdown-test

Conversation

@jasonvarga

@jasonvarga jasonvarga commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

commonmark 2.9.2 adds tabindex="-1" to heading permalinks, so that a permalink rendered with aria-hidden="true" isn't left in the keyboard tab order. The markdown tests assert against hardcoded permalink markup, so they started failing as soon as 2.9.2 was released.

Rather than hardcoding the new markup, the assertions now strip the attribute before comparing, in the same spirit as the existing newline normalization in the table of contents test. That keeps the tests passing on both 2.9.2 and 2.9.0, which is what prefer-lowest currently resolves to. I didn't want to bump the requirement to an hours-old release on 5.x.

This is targeting 5.x even though it's in security-only status, because CI runs would fail.

jasonvarga and others added 3 commits August 11, 2026 12:42
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
To be reverted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Reverts the temporary revert used to confirm CI fails on 5.x.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@jasonvarga
jasonvarga merged commit 0af743d into 5.x Aug 11, 2026
14 checks passed
@jasonvarga
jasonvarga deleted the fix-markdown-test branch August 11, 2026 17:15
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.

1 participant