Esc

COMARK0004 · warning

comark/broken-anchor

Link #fragments to a heading or id in the document they name

A #fragment link that matches no heading id or {#id} in the document it points at: the same one, another file (./setup.md#install), or a page a route serves (/guide/setup/#install). The message lists the ids that document has and the closest one. Fragments on external links aren't checked.

Ids come from the same headingIds you render with; pass it if you change Comark's default, or 'nested' ids look broken.

Incorrect

# Pigeon census

Read the [method](#methods) first.

## Method
md
lint-comark example.mdexample.md:3:19 comark/broken-anchorThe link to #methods on line 3 matches no heading or id in this document.Did you mean #method? Ids here: #pigeon-census, #method. To link somewhere else, add {#methods} after the element it should point at.✖ 1 problem

Correct

# Pigeon census

Read the [method](#method) first.

## Method
md
lint-comark example.md✔ No problems