Esc

COMARK2706 · warning

comark/details/invalid-type

Write an accordion's type as single or multiple

An accordion's type is multiple, the default, where every item can be open at once, or single, where opening one closes the others. Any other value counts as multiple.

Incorrect

::accordion{type="one"}
:::accordion-item{label="Can I feed the ducks?"}
Only oats and peas.
:::

:::accordion-item{label="Can I swim in the pond?"}
No, it's the ducks' pond.
:::
::
md
lint-comark example.mdexample.md:1:1 comark/details/invalid-type::accordion 1: type is "one".Write type="single" to keep one item open, or leave it out.✖ 1 problem

Correct

::accordion{type="single"}
:::accordion-item{label="Can I feed the ducks?"}
Only oats and peas.
:::

:::accordion-item{label="Can I swim in the pond?"}
No, it's the ducks' pond.
:::
::
md
lint-comark example.md✔ No problems