| id | MDS027 |
|---|---|
| name | cross-file-reference-integrity |
| status | ready |
| description | Links to local files and heading anchors must resolve. |
Links to local files and heading anchors must resolve.
- ID: MDS027
- Name:
cross-file-reference-integrity - Status: ready
- Default: enabled, include: [], exclude: [], strict: false
- Fixable: no
- Implementation: source
- Category: link
| Setting | Type | Default | Description |
|---|---|---|---|
include |
list | [] |
glob patterns to include |
exclude |
list | [] |
glob patterns to skip |
strict |
bool | false |
check non-Markdown file links |
With strict: false, only Markdown targets (.md, .markdown)
are checked. External links (http:, https:, mailto:) are
always ignored.
rules:
cross-file-reference-integrity:
include:
- "docs/**"
exclude:
- "docs/generated/**"
strict: falseDisable:
rules:
cross-file-reference-integrity: false# Cross File Links
See [guide](good/guide.md#overview).
Jump to the [local section](#local-anchor).
## Local Anchor
Anchor target.# Guide
## Overview
This file is a valid link target.# Broken File Link
See [guide](bad/missing.md).# Broken Heading Link
See [guide](bad/ref/guide.md#missing-section).| Condition | Message |
|---|---|
| missing file | broken link target "x.md" not found |
| missing heading | broken link target "x.md#section" has no matching heading anchor |