ahkscript / awesome-AutoHotkey

A curated list of awesome AutoHotkey libraries, library distributions, scripts, tools and resources.
2.59k stars 264 forks source link

Use unique anchor tags for each item in the table of contents #12

Closed hi5 closed 9 years ago

hi5 commented 10 years ago

Be sure to use unique anchor tags for each item in the table of contents, I've fixed it by adding the category prefix e.g. scripts-clipboard, scripts-gui etc. Simply create a named anchor like so:

<a name="scripts-gui"></a>
vasili111 commented 10 years ago

@hi5 :thumbsup: I just found that bug and posted question at Github asking how to fix it http://stackoverflow.com/questions/25330368/two-group-links-with-the-same-name-should-link-to-different-places Only after posting question I found your fix.

hi5 commented 10 years ago

I just noticed that GH already seems to fix this issue, if you hover over the permalink icon of a heading (the shackle on the left of the heading) you'll see that for the second Gui anchor it has added a -

First gui https://github.com/ahkscript/awesome-AutoHotkey#gui Second gui https://github.com/ahkscript/awesome-AutoHotkey#gui-

vasili111 commented 10 years ago

@hi5 Just tested it here: https://github.com/vasili111/awesome-AutoHotkey You are right, it works. I think it is better way then using html tags.

rshipp commented 10 years ago

This will break links in the TOC if you add a heading with the same name in a previous section, so we'd have to be careful to keep them updated.

vasili111 commented 9 years ago

@rshipp Yes you are right. In that case using html tags looks better

rshipp commented 9 years ago

This issue is linked in contributing.md, can it be closed now?

vasili111 commented 9 years ago

I think yes. If someone will need it we can reopen it.