Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Anchor tags ID & name attributes should have same value #95

Open
gmccullo opened this issue Feb 12, 2021 · 0 comments
Open

Anchor tags ID & name attributes should have same value #95

gmccullo opened this issue Feb 12, 2021 · 0 comments

Comments

@gmccullo
Copy link

When using insertAnchor:true the generated anchor tags have different ID & name attribute values. The link points to the name value, not the ID value. This causes validation errors on bad links. The ID and Name should have the same value, and the link should point to it. For example:

<!-- TOC depthFrom:3 insertAnchor:true -->
- [Theatres. Clubs. Churches. Schools.](#theatres-clubs-churches-schools)
<!-- TOC -->

<a id="markdown-theatres-clubs-churches-schools" name="theatres-clubs-churches-schools"></a>
#### Theatres. Clubs. Churches. Schools.

Should be:

<!-- TOC depthFrom:3 insertAnchor:true -->
- [Theatres. Clubs. Churches. Schools.](#theatres-clubs-churches-schools)
<!-- TOC -->

<a id="theatres-clubs-churches-schools" name="theatres-clubs-churches-schools"></a>
#### Theatres. Clubs. Churches. Schools.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant