tests: check alternate Markdown link titles (TEST-MARKDOWN-LINK-TITLES) #839
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/839"
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?
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T14:25:40Z.
Claimed 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.Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T14:40:44Z.
Review: APPROVED
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.
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-24T21:22:18Z.
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).