Skip to content

Render resolved numbered references in text output - #14727

Open
Lingikaushikreddy wants to merge 1 commit into
sphinx-doc:masterfrom
Lingikaushikreddy:lingikaushikreddy/fix-text-numbered-references
Open

Lingikaushikreddy wants to merge 1 commit into
sphinx-doc:masterfrom
Lingikaushikreddy:lingikaushikreddy/fix-text-numbered-references

Conversation

@Lingikaushikreddy

Copy link
Copy Markdown

Purpose

The text builder currently renders the original :numref: format string instead of the resolved number and caption. Use the resolved node text so figures, tables, code listings, and sections produce the expected references, including custom formats. Add a regression test with section numbering enabled and disabled, a changelog entry, and contributor attribution.

References

Fixes #10210.

Validation

  • Regression test: failed before the writer change and passed afterward.
  • Focused suite: 244 passed.
  • Full suite: 2,394 passed, 34 skipped.
  • Ruff, formatting, mypy, Pyright, ty, and documentation lint passed.

AI Disclosure

OpenAI Codex investigated the issue and generated the writer change, regression test, changelog entry, contributor entry, and this PR description. It also ran automated checks and AI code review. Human line-by-line review remains pending. The PR is being submitted through the user's browser at their explicit direction.

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.

:numref: reference is not resolved correctly in text output

1 participant