Skip to content

feat(md): support custom heading IDs#530

Draft
caugner wants to merge 1 commit intomainfrom
custom-heading-ids
Draft

feat(md): support custom heading IDs#530
caugner wants to merge 1 commit intomainfrom
custom-heading-ids

Conversation

@caugner
Copy link
Copy Markdown
Contributor

@caugner caugner commented Feb 12, 2026

Description

Add support for custom heading IDs:

## Heading {#custom-id}

Renders to

<h2 id="custom-id">Heading</h2>

Motivation

Allow translated content to use the same heading IDs as en-US, making locale-agnostic fragment links work across locales.

Additional details

This was discussed in https://github.com/orgs/mdn/discussions/387.

Related issues and pull requests

@github-actions
Copy link
Copy Markdown
Contributor

cbbaa07 was deployed to: https://rari-pr530.review.mdn.allizom.net/

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.

2 participants