-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
👀 no/externalThis makes more sense somewhere elseThis makes more sense somewhere else
Description
Subject of the feature
Add ids to headings for deep linking.
Problem
Most markdown implementations automatically add a slugified id to all headings (h1–h6) for deep-linking support. I would expect MDX to do the same.
Expected behavior
Markdown such as ## More information should render as <h2 id="more-information">More information</h2>. This way, links with this hash deep link to the heading (e.g. https://example.com/foo#more-information).
Alternatives
Similar behavior can be accomplished by creating custom components that add the id, but this requires additional configuration.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
👀 no/externalThis makes more sense somewhere elseThis makes more sense somewhere else