Esc

COMARK0601 · warning

comark/code/invalid-range

Write line ranges in braces, such as {2-4}

ins, del, mark, and collapse take line numbers in braces, as Expressive Code writes them: a line such as {3}, a range such as {2-4}, or a list of both, {2-4,7}. Anything else, such as mark=3 or a range that runs backwards, marks no line.

Incorrect

```js mark=2
const ducks = 14;
const pigeons = 3;
```
md
lint-comark example.mdexample.md:1:1 comark/code/invalid-rangeThe js code block that starts "const ducks = 14;" has mark=2, which isn't a line range, so no line is marked.Write the line numbers in braces, such as mark={2-4}.✖ 1 problem

Correct

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