Esc

COMARK0707 · warning

comark/diff/file-mismatch

Show one file in each ::diff

A diff shows one file, under the name of the first block. When the second block names another file, the change shown is between two different files. Put each file in its own diff.

Incorrect

::diff
```ts [src/ducks.ts]
const meals = 1
```
```ts [src/geese.ts]
const meals = 2
```
::
md
lint-comark example.mdexample.md:1:1 comark/diff/file-mismatchdiff "src/ducks.ts": the before block names "src/ducks.ts" and the after block "src/geese.ts".A diff shows one file; split the other into its own diff.✖ 1 problem

Correct

::diff
```ts [src/ducks.ts]
const meals = 1
```
```ts [src/ducks.ts]
const meals = 2
```
::
md
lint-comark example.md✔ No problems