Esc

COMARK0602 · warning

comark/code/line-out-of-range

Mark only lines the code block has

A marked or collapsed range that runs past the block's last line usually means lines were cut from the code after the range was written. The lines past the end don't exist, so the range marks nothing.

Incorrect

```js mark={3}
const ducks = 14;
const pigeons = 3;
```
md
lint-comark example.mdexample.md:1:1 comark/code/line-out-of-rangeThe js code block that starts "const ducks = 14;" has mark={3}, but it has 2 lines, so line 3 doesn't exist.Mark lines from 1 to 2.✖ 1 problem

Correct

```js mark={2}
const ducks = 14;
const pigeons = 3;
```
md
lint-comark example.md✔ No problems