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

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

@gmccullo

Description

@gmccullo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions