Skip to content

prosekit/extensions/list

ListAttrs

The attributes of a list node.

checked?: boolean

Whether the list node is checked if its kind is "task".

collapsed?: boolean

Whether the list node is collapsed if its kind is "toggle".

kind?: "toggle" | "bullet" | "ordered" | "task"

The kind of list node.

order?: null | number

The optional order of the list node.

defineList

ts
function defineList(): ListExtension