Esc

COMARK0107 · warning

comark/annotate/invalid-viewport

Write viewport as the capture size, like 1440x900

viewport is the size the screenshot was captured at, in pixels. It places each annotation's number against the image's real shape, and lets a compare check that both sides match. Anything but WIDTHxHEIGHT is ignored.

Incorrect

::screenshot{src="/pond.png" alt="The pond map with three ducks" viewport="1440 by 900"}
::
md
lint-comark example.mdexample.md:1:19 comark/annotate/invalid-viewportscreenshot "/pond.png": viewport must be the capture size in pixels, like 1440x900 (got "1440 by 900").Change the block as the message says.✖ 1 problem

Correct

::screenshot{src="/pond.png" alt="The pond map with three ducks" viewport="1440x900"}
::
md
lint-comark example.md✔ No problems