Esc

COMARK2204 · warning

comark/cast/src-and-code

Give a ::cast a src or a code block, not both

A ::cast reads its recording from src or from a code block inside it. With both, it shows the file and drops the code block, so whichever you edited last may not be the one readers see.

Incorrect

::cast{src="deploy.cast"}
```json
{"version": 2, "width": 40, "height": 3}
[0.1, "o", "$ pnpm deploy\r\n"]
```
::
md
lint-comark example.mdexample.md:1:1 comark/cast/src-and-code::cast 1 "deploy.cast" has both src and a code block; it shows the file.Remove one of them.✖ 1 problem

Correct

::cast{src="deploy.cast"}
::
md
lint-comark example.md✔ No problems