links
New Settings Since v0.1.0
Linter: a relative link points to a file or directory inside the repository.
Example#
doc.md:
See the [guide](docs/gide.md).With docs/guide.md in the repository, markright check reports:
doc.md:1: broken link: docs/gide.md (links)
markright: 1 issue(s)Fixed:
See the [guide](docs/guide.md).Settings#
Under linters.settings.links:
| Key | Meaning | Default |
|---|---|---|
targets | Paths a relative link is checked against, when any are set; a link to another path is not checked | none |
With the defaults, in .markright.yaml:
linters:
settings:
links:
targets: []or in .markright.toml:
[linters.settings.links]
targets = []Turning it off#
linters:
disable: [links][linters]
disable = ["links"]More in Rules.