alanwalk / markdown-toc

MarkdownTOC(Table Of Contents) Plugin for Visual Studio Code.
MIT License
141 stars 111 forks source link

Anchor tags should not be on a line directly above a heading #94

Open gmccullo opened 3 years ago

gmccullo commented 3 years ago

When using insertAnchor:true the anchor tags are inserted on a line directly above the header line. For example:

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

This causes a linter error because headers should have blanks before and after. See: markdownlint/Rules.md at v0.22.0 · DavidAnson/markdownlint