Skip to content

🐛 FIX: Resolve named external links in eval-rst blocks - #1252

Open
AryanRG wants to merge 1 commit into
executablebooks:masterfrom
AryanRG:fix/eval-rst-external-target-references
Open

AryanRG wants to merge 1 commit into
executablebooks:masterfrom
AryanRG:fix/eval-rst-external-target-references

Conversation

@AryanRG

@AryanRG AryanRG commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Fixes #391. Related to #771.

Named links in an {eval-rst} table can point back to an anchor on the page even when the target declares an external URL. This also happens when the block includes the table from an rST file.

Docutils looks up references by name when resolving external targets. Carry the references recorded while parsing the block into the host document, preserving every use of each name. The regression test checks two table cells that link to the same target.

The full suite passed on Sphinx 8.2.3 and 9.1.1, and all pre-commit hooks passed.

This branch has not been deployed

No deployments
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.

Explicit link in table in eval-rst is incorrectly implicit

1 participant