elastic / elastic/docs-builder

Duplicate heading anchors

Open
#490 16 comments 0 reactions 1 assignee Claimed by @cotti View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.