When including a document that contains multiple headings with exactly the same names, such as a changelog like this:
# Version 1
## Bugfixes
- A
- B
- C
# Version 2
## Bugfixes
- A
- B
- C
## Features
- X
- Y
The h2 headings are duplicated, and so duplicate label warnings appear.
A potential solution to this could be to replicate what MyST is doing, and use placeholder ids like #id1, #id2, etc. for any such duplicate labels, to allow referencing any title easily, without any conflicts.
When including a document that contains multiple headings with exactly the same names, such as a changelog like this:
The h2 headings are duplicated, and so
duplicate label
warnings appear.A potential solution to this could be to replicate what MyST is doing, and use placeholder ids like
#id1
,#id2
, etc. for any such duplicate labels, to allow referencing any title easily, without any conflicts.i.e. the final version shouldn't look like this:![image](https://user-images.githubusercontent.com/20902250/217853782-1c23eae9-04fe-4058-9a90-d29a24c04b6a.png)
But rather like this:![image](https://user-images.githubusercontent.com/20902250/217853863-ad5ad50e-d07a-4bc1-8484-2d46d30e5be0.png)