elastic / elastic/docs-builder
Duplicate heading anchors
Open
ai-triaged
ai:eng-question
ai:product-question
ai:writer-question
bug
good AI issue
good-first-issue
- Dominant language
- C#
- Stars
- 24
- Forks
- 44
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 146
Description
### Describe the bug
If there are multiple headings with the same title e.g.
```markdown
## Heading 1
### Example
## Heading 2
### Example
```
Then the table of contents navigation gets confused because there are multiple sections with the same id.
### Expected behavior
Each heading should have a unique anchor
### Steps to reproduce
_No response_
### Tooling
- [x] docs-builder
- [ ] migration tooling
- [ ] I'm not sure
Contributor guide
Assessment
This issue has not been assessed yet.