Esc

COMARK0110 · warning

comark/annotate/box-as-fraction

Write x, y, w, and h as percentages, not fractions

The values are percentages, so x=0.25 is a quarter of one percent of the image, not a quarter of it. A box written as fractions shrinks to a speck in the top left corner. Multiply each value by 100.

Incorrect

::screenshot{src="/pond.png" alt="The pond map with three ducks"}
:::annotation{x=0.2 y=0.3 w=0.15 h=0.1}
The duck without a name tag.
:::
::
md
lint-comark example.mdexample.md:1:19 comark/annotate/box-as-fractionscreenshot "/pond.png", annotation 1: x, y, w, and h are all 1 or less, so the box is a speck in the top left corner.They're percentages: multiply each by 100, so x=0.25 becomes x=25.✖ 1 problem

Correct

::screenshot{src="/pond.png" alt="The pond map with three ducks"}
:::annotation{x=20 y=30 w=15 h=10}
The duck without a name tag.
:::
::
md
lint-comark example.md✔ No problems