Fix duplicate Highlights anchor in 0.86 release post#5134
Merged
Conversation
de25f59 to
5ed8de1
Compare
The pre-truncate teaser "### Highlights" and the "## Highlights" section heading both slug to "highlights", so Docusaurus generated two table-of-contents entries (#highlights and #highlights-1). Promote the teaser to "## Highlights" and drop the now-redundant "## Highlights" section heading after the truncate marker. The highlight subsections nest under the single Highlights heading, leaving one #highlights anchor in the sidebar.
5ed8de1 to
286e1b9
Compare
huntie
approved these changes
Jun 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The 0.86 release post showed two "Highlights" links in the sidebar table of contents, pointing to
#highlightsand#highlights-1.The cause is two headings that both slug to
highlights:### Highlights## Highlightssection heading after the truncate markerDocusaurus deduped the second anchor to
#highlights-1. In 0.86 the teaser only lists "Highlights", so the two entries sit adjacent in the sidebar and the duplication is obvious.Fix
Promote the teaser to
## Highlightsand drop the now-redundant## Highlightssection heading after the truncate marker. The highlight subsections (###) then nest under the single Highlights heading.Test plan
Verified against a local
yarn build:id=highlightsanchor is generated (nohighlights-1)#a-new-home-for-react-native,#edge-to-edge-on-android,#react-native-devtools-improvements) all resolve