ampproject / bentojs.dev

Bento Website
Apache License 2.0
49 stars 9 forks source link

Explicitly set the id attribute of headings in the Markdown documents to keep them consistent across translations. #163

Open ilyaspiridonov opened 2 years ago

ilyaspiridonov commented 2 years ago

In the English documentation, id attributes of headings that are cross-referenced in the document, must be set explicitly in Markdown, to make sure those ids are consistent across translated documents and anchor links are working correctly on non-English pages. Example:

## Web Component {: #web-component }

Support for explicit id attributes of headings is added in this PR: https://github.com/ampproject/bentojs.dev/pull/162

ilyaspiridonov commented 2 years ago

@patrickkettner FYI