tests: check alternate Markdown link titles (TEST-MARKDOWN-LINK-TITLES) #839
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!839
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/839/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TheGeogeo on GitHub · 2026-11-24 14:25 UTC · original
TheGeogeo:test/markdown-link-title-delimiters→main· +24 −1 · 1 files · 1 commits · merged 2026-11-25 21:24 UTCClaimed in the coordination issue as: TEST-MARKDOWN-LINK-TITLES
What and why
The link checker misses broken inline destinations when the title is single-quoted, parenthesized or contains an escaped delimiter. Match the three CommonMark title forms without changing the destination capture. The synthetic regression checks broken files, a missing anchor and an existing anchor. This carries forward my earlier
ProjectLeonida/LeonidaPR #10084 onto this repository's current matcher.Tested
After a rebase on
main6293c1c4(32fc5eec, same patch as3eee59b8), on Windows 11, Python 3.12.4:tests/test_docs_links.py17 OK;test_tool_stdout_encoding.py,test_docs_cli_flags.pyandtest_text_write_line_endings.pyOK;git diff --checkand the no-game-data check clean.d0da7dadmatcher because it reported none of three broken destinations.python -I -B tests/test_docs_links.py: 17 passed.python -B -m unittest discover -s tests -p 'test_docs_*.py': 48 passed.git diff --checkandpython -I -B scripts/check_no_game_data.py tests/test_docs_links.py: passed.GPUs tested: n/a. CPU-only tests.
AI-assisted: Yes, Codex.
Checklist
main.@abnalstlll-byte on GitHub · 2026-11-24 14:40 UTC · original · approved these changes
Audited and verified. Extends markdown link regex in ests/test_docs_links.py to support all CommonMark title delimiter variants (double quotes, single quotes, and parentheses with escape handling), preventing spurious link target truncation in docs linting. Unit tests pass cleanly. Approved.
@TheGeogeo on GitHub · 2026-11-24 21:22 UTC · original
Rebased on
main6293c1c4:3eee59b8->32fc5eec, same patch (git range-diff). The previous base failedtests/test_tool_stdout_encoding.py, which #948 fixed onmain, and the earlier CI run never started (action_required).tests/test_docs_links.py17 OK;test_tool_stdout_encoding.py,test_docs_cli_flags.pyandtest_text_write_line_endings.pyOK;git diff --checkand the no-game-data check clean.3eee59b8.No code change in this rebase. CI on the new head is still queued.
AI-assisted: yes (Claude Code).