COMARK0112 · warning
comark/annotate/invalid-color
Color a mark or a figure's ink with a named color or a hex color
Each named color means one thing: violet, the default, points something out, red flags a problem, amber a warning, green a fix, blue is a second voice, and gray anything neutral. Any other color has to be a 3- or 6-digit hex color like #e5484d. Anything else is dropped, and the mark takes the default color.
Incorrect
::screenshot{src="/pond.png" alt="The pond map with three ducks"}
:::annotation{x=20 y=30 w=15 h=10 color="orange"}
The duck without a name tag.
:::
:: lint-comark example.mdexample.md:1:19 comark/annotate/invalid-colorChange the block as the message says.✖ 1 problem
Correct
::screenshot{src="/pond.png" alt="The pond map with three ducks"}
:::annotation{x=20 y=30 w=15 h=10 color="amber"}
The duck without a name tag.
:::
:: lint-comark example.md✔ No problems