Esc

COMARK0701 · warning

comark/diff/unknown-prop

Use only ::diff's props

::diff reads file, line, and label, and ignores every other prop. A misspelled one is dropped without a word: here the heading never shows. The message suggests the prop you likely meant.

Incorrect

::diff{title="Feed the ducks twice"}
```ts [src/ducks.ts]
const meals = 1
```
```ts
const meals = 2
```
::
md
lint-comark example.mdexample.md:1:1 comark/diff/unknown-propdiff "src/ducks.ts": title isn't a prop of ::diff. Did you mean label?Valid props: file, line, label.✖ 1 problem

Correct

::diff{label="Feed the ducks twice"}
```ts [src/ducks.ts]
const meals = 1
```
```ts
const meals = 2
```
::
md
lint-comark example.md✔ No problems