Skip to content

fix: resolve duplicate Example heading anchor#2350

Closed
Divyansh200102 wants to merge 1 commit intojson-schema-org:mainfrom
Divyansh200102:fix/duplicate-example-heading
Closed

fix: resolve duplicate Example heading anchor#2350
Divyansh200102 wants to merge 1 commit intojson-schema-org:mainfrom
Divyansh200102:fix/duplicate-example-heading

Conversation

@Divyansh200102
Copy link

What kind of change does this PR introduce?
Bugfix

Issue Number:

Summary
Both ### Example headings in non_json_data.md slugified to the same id="example", causing the TOC to always scroll to the first one and highlight both simultaneously.

Fixed by using the existing [#fragment] syntax to give each heading a unique ID (#example-html and #example-base64). No code changes required.

Does this PR introduce a breaking change?
No

Checklist

@github-actions
Copy link

github-actions bot commented Mar 18, 2026

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
website ✅ Ready (View Log) Visit Preview 8d8eae6

@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5ca1483) to head (8d8eae6).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2350   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines          672       672           
  Branches       211       211           
=========================================
  Hits           672       672           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-project-automation github-project-automation bot moved this from Ready to review to Done in PR - Triage Group Mar 18, 2026
@Divyansh200102
Copy link
Author

@Utkarsh-123github why was this one closed was the fix wrong?

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🐛 Bug: HClicking on Example section header scrolls to the first Example section and highlights multiple headers

2 participants