Esc

COMARK2903 · warning

comark/xref/missing-id

Give every :ref an id

:ref reads the id it points at from {#...}. Without one, it has nothing to number and renders as [?]. Writing the label without its # makes it a prop instead of an id, so the reference still names nothing.

Incorrect

![Three ducks on the pond](ducks.png){#fig-ducks}

As :ref{fig-ducks} shows, the ducks stay near the reeds.
md
lint-comark example.mdexample.md:1:1 comark/xref/missing-id:ref 1 names nothing.Write the id it points at, such as :ref{#fig-login}.✖ 1 problem

Correct

![Three ducks on the pond](ducks.png){#fig-ducks}

As :ref{#fig-ducks} shows, the ducks stay near the reeds.
md
lint-comark example.md✔ No problems