mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #839] [MERGED] tests: check alternate Markdown link titles (TEST-MARKDOWN-LINK-TITLES) #875
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#875
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/839
Author: @TheGeogeo
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @Andretuta
Base:
main← Head:test/markdown-link-title-delimiters📝 Commits (1)
32fc5eeCheck links with alternate Markdown title delimiters📊 Changes
1 file changed (+24 additions, -1 deletions)
View changed files
📝
tests/test_docs_links.py(+24 -1)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.