anchors

New Settings Since v0.1.0

Linter: a #fragment matches a heading of the target document.

Example#

doc.md:

See [installing](docs/guide.md#setup).

With docs/guide.md in the repository, markright check reports:

doc.md:1: broken anchor: docs/guide.md#setup (anchors)
markright: 1 issue(s)

Fixed:

See [installing](docs/guide.md#install).

Settings#

Under linters.settings.anchors:

KeyMeaningDefault
targetsDocuments a link's fragment is checked against, when any are set; a fragment into another document is not checkednone

With the defaults, in .markright.yaml:

linters:
  settings:
    anchors:
      targets: []

or in .markright.toml:

[linters.settings.anchors]
targets = []

Turning it off#

linters:
  disable: [anchors]
[linters]
disable = ["anchors"]

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