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:
| Key | Meaning | Default |
|---|---|---|
targets | Documents a link's fragment is checked against, when any are set; a fragment into another document is not checked | none |
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.