Skip to content

Respect heading numbering offsets in references - #3004

Draft
sapunyangkut wants to merge 1 commit into
jupyter-book:mainfrom
sapunyangkut:codex/issue-2998-reference-offset
Draft

Respect heading numbering offsets in references#3004
sapunyangkut wants to merge 1 commit into
jupyter-book:mainfrom
sapunyangkut:codex/issue-2998-reference-offset

Conversation

@sapunyangkut

Copy link
Copy Markdown

Summary

  • Forward the existing heading numbering offset into the reference enumeration decision.
  • Add a regression covering shifted first- and second-level heading templates.
  • Add the required myst-transforms patch changeset.

Fixes #2998

Validation

Preserved exact-SHA evidence for the unchanged two-file implementation patch:

  • pre-fix focused regression: 1 failed as expected
  • focused regression: 1 passed
  • adjacent enumeration suites: 36 passed
  • full myst-transforms package: 320 passed
  • dependency-aware target build: 8/8 tasks passed
  • package lint: 0 errors (6 unrelated existing warnings)
  • touched-file formatting and git diff --check: passed

The current no-install checkout has no node_modules, so no fresh dependency-backed rerun was claimed. No dependencies or lockfiles were changed.

AI assistance

This Draft PR was prepared with OpenAI Codex. Automated root-cause analysis, patching, and validation evidence were used; no human self-review is claimed. It remains a draft for maintainer and user review.

@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 494f9f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
myst-transforms Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Section references in LaTeX with numbered sections work for \subsection, but not for \section

1 participant