This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Same headers with different cases don't generate unique links #93
Comments
mcornella
added a commit
to mcornella/markdown-toc
that referenced
this issue
Nov 2, 2020
This fixes the case where different titles get the same hash. In the old version, the repetition number was tracked with the title; since they didn't match, the repetition number wasn't incremented. Now, the repetition number is tracked from the hash (#title), so they get the correct repetition. Fixes alanwalk#93
Fixed in #92. |
mcornella
added a commit
to mcornella/markdown-toc
that referenced
this issue
Nov 2, 2020
This fixes the case where different titles get the same hash. In the old version, the repetition number was tracked with the title; since they didn't match, the repetition number wasn't incremented. Now, the repetition number is tracked from the hash (#title), so they get the correct repetition. Fixes alanwalk#93
mcornella
added a commit
to mcornella/markdown-toc
that referenced
this issue
Nov 2, 2020
This fixes the case where different titles get the same hash. In the old version, the repetition number was tracked with the title; since they didn't match, the repetition number wasn't incremented. Now, the repetition number is tracked from the hash (#title), so they get the correct repetition. Fixes alanwalk#93
mcornella
added a commit
to mcornella/markdown-toc
that referenced
this issue
Nov 2, 2020
This fixes the case where different titles get the same hash. In the old version, the repetition number was tracked with the title; since they didn't match, the repetition number wasn't incremented. Now, the repetition number is tracked from the hash (#title), so they get the correct repetition. Fixes alanwalk#93
mcornella
added a commit
to mcornella/markdown-toc
that referenced
this issue
Nov 2, 2020
This fixes the case where different titles get the same hash. In the old version, the repetition number was tracked with the title; since they didn't match, the repetition number wasn't incremented. Now, the repetition number is tracked from the hash (#title), so they get the correct repetition. Fixes alanwalk#93
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Here's a demo of the issue. Note that the 1st and 2nd items have the same (#value):
<!-- TOC -->
- [Item](#item)
- [item](#item)
- [item](#item-1)
<!-- /TOC -->
# Item
# item
# item
The text was updated successfully, but these errors were encountered: