markdown-include icon indicating copy to clipboard operation
markdown-include copied to clipboard

Duplicate sub headings lead to first link

Open sethen opened this issue 11 years ago • 1 comments

If you have duplicate sub headings the link generated for them in the table of contents will just lead to the first match it finds. For instance, if you had:

# A Heading !heading
## A Subheading !heading

# Another Heading !heading
## A Subheading !heading

The table of contents generates the link based on the heading text. So both links for A Subheading would be the first subheading content.

sethen avatar Nov 14 '15 23:11 sethen

I think this is a limitation of Markdown itself.

AaronDMarasco avatar Jul 15 '20 18:07 AaronDMarasco