Esc

COMARK2705 · warning

comark/details/invalid-default-value

Open accordion items by their position from 0

defaultValue lists the items that start open by their position, counted from 0, as Nuxt UI takes them. A label, or a position past the last item, opens nothing.

Incorrect

::accordion{defaultValue="1"}
:::accordion-item{label="Can I feed the ducks?"}
Only oats and peas.
:::
::
md
lint-comark example.mdexample.md:1:1 comark/details/invalid-default-value::accordion 1: defaultValue "1" isn't an item.Write each item's position from 0, such as :defaultValue='["0"]'.✖ 1 problem

Correct

::accordion{defaultValue="0"}
:::accordion-item{label="Can I feed the ducks?"}
Only oats and peas.
:::
::
md
lint-comark example.md✔ No problems