duplicate-definitions
New Since v0.1.0
Linter: a reference label is defined once; a renderer ignores every definition after the first.
Example#
doc.md:
See the [guide].
[guide]: docs/guide.md
[guide]: docs/old.mdWith docs/guide.md in the repository, markright check reports:
doc.md:4: [guide] is already defined on line 3 (duplicate-definitions)
markright: 1 issue(s)Fixed:
See the [guide].
[guide]: docs/guide.mdTurning it off#
linters:
disable: [duplicate-definitions][linters]
disable = ["duplicate-definitions"]More in Rules.