Esc

COMARK3102 · warning

comark/fields/unknown-prop

Use only ::field's props

::field reads name, type, required, default, and description, and ignores every other prop. A misspelled type or default drops it from the field without a trace, so readers miss what the option takes.

Incorrect

::field{name="pond" typ="string"}
The pond the pigeons fly to.
::
md
lint-comark example.mdexample.md:1:1 comark/fields/unknown-prop::field 1 (pond): typ isn't a prop of ::field, so it's ignored.Use name, type, required, default, or description.✖ 1 problem

Correct

::field{name="pond" type="string"}
The pond the pigeons fly to.
::
md
lint-comark example.md✔ No problems