duplicate-headings
New Since v0.1.0
Linter: no two headings of one section say the same, which would leave their anchors apart by a number only.
Example#
doc.md:
# Guide
## Setup
## Usage
## Setupmarkright check reports:
doc.md:7: heading repeats one of its section: Setup (duplicate-headings)
markright: 1 issue(s)Fixed:
# Guide
## Setup
## Usage
## UpgradeTurning it off#
linters:
disable: [duplicate-headings][linters]
disable = ["duplicate-headings"]More in Rules.