[PR #839] [MERGED] tests: check alternate Markdown link titles (TEST-MARKDOWN-LINK-TITLES) #875

Closed
opened 2026-11-26 20:19:20 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 32fc5ee Check 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/Leonida PR #10084 onto this repository's current matcher.

Tested

After a rebase on main 6293c1c4 (32fc5eec, same patch as 3eee59b8), on Windows 11, Python 3.12.4: tests/test_docs_links.py 17 OK; test_tool_stdout_encoding.py, test_docs_cli_flags.py and test_text_write_line_endings.py OK; git diff --check and the no-game-data check clean.

  • Windows, Python 3.12.4. The regression failed against the d0da7dad matcher 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 --check and python -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

  • Based on current main.
  • One topic.
  • No game data, keys, or decryption.
  • Translator contract entry: not applicable.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/839 **Author:** [@TheGeogeo](https://github.com/TheGeogeo) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@Andretuta](https://github.com/Andretuta) **Base:** `main` ← **Head:** `test/markdown-link-title-delimiters` --- ### 📝 Commits (1) - [`32fc5ee`](https://github.com/ubiquitarianism/leonida/commit/32fc5eec482cac8e1d6ad5bacc56c5c3ddd799d4) Check links with alternate Markdown title delimiters ### 📊 Changes **1 file changed** (+24 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_docs_links.py` (+24 -1) </details> ### 📄 Description Claimed in the coordination issue as: [TEST-MARKDOWN-LINK-TITLES](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134289336) ### 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](https://spec.commonmark.org/0.31.2/#links) without changing the destination capture. The synthetic regression checks broken files, a missing anchor and an existing anchor. This carries forward my earlier `ProjectLeonida/Leonida` PR #10084 onto this repository's current matcher. ### Tested After a rebase on `main` `6293c1c4` (`32fc5eec`, same patch as `3eee59b8`), on Windows 11, Python 3.12.4: `tests/test_docs_links.py` 17 OK; `test_tool_stdout_encoding.py`, `test_docs_cli_flags.py` and `test_text_write_line_endings.py` OK; `git diff --check` and the no-game-data check clean. - Windows, Python 3.12.4. The regression failed against the `d0da7dad` matcher 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 --check` and `python -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 - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys, or decryption. - Translator contract entry: not applicable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:20 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#875
No description provided.