Skip to content

VBC-920: relative-link-format

warning

Category: docs
Analysis: Regex (line by line)
File types: .md
Scope: source code only, ignoring anything inside strings and comments
Tags: documentation maintenance

What it reports

Relative local link missing './' prefix at line {line}. Use [link](./path/to/file) for better tool compatibility.

Flagged

md
See [the guide](guide.md).

Not flagged

md
See [the guide](./guide.md).
md
See [the site](https://example.com).

Pattern

regex
\]\((?![a-z]+:|/|\.)

Released under the MIT License.