Esc

COMARK3002 · warning

comark/sources/unknown-source

Cite only sources ::sources lists

A citation's number is its source's place in the ::sources list. A number past the end of the list, or a citation in a document with no list, points at nothing, so it renders as plain text instead of a link. This happens when sources are removed or reordered and the numbers in the text drift.

Incorrect

Ducks sleep with one eye open :cite[2].

::sources
1. [Unihemispheric sleep](https://en.wikipedia.org/wiki/Unihemispheric_slow-wave_sleep)
::
md
lint-comark example.mdexample.md:1:1 comark/sources/unknown-source:cite 1 cites source 2, but ::sources lists 1.Fix the number, or add the source.✖ 1 problem

Correct

Ducks sleep with one eye open :cite[1].

::sources
1. [Unihemispheric sleep](https://en.wikipedia.org/wiki/Unihemispheric_slow-wave_sleep)
::
md
lint-comark example.md✔ No problems