Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate sub headings lead to first link #2

Open
sethen opened this issue Nov 14, 2015 · 1 comment
Open

Duplicate sub headings lead to first link #2

sethen opened this issue Nov 14, 2015 · 1 comment
Labels

Comments

@sethen
Copy link
Owner

sethen commented Nov 14, 2015

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 sethen added the bug label Nov 14, 2015
@AaronDMarasco
Copy link

I think this is a limitation of Markdown itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants