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.md

With 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.md

Turning it off#

linters:
  disable: [duplicate-definitions]
[linters]
disable = ["duplicate-definitions"]

More in Rules.

Settings

Appearance

ThemeColours of every page

Reading

Code blocksLines longer than the block
TablesCells wider than the page

Accessibility

Text sizeEvery page, in proportion
LinksLinks inside the text
MotionAnimations and smooth scrolling
ScrollbarsCode blocks, tables and other scrolling areas