prosekit/extensions/list
ListAttrs
The attributes of a list node.
checked
Whether the list node is checked if its
kind
is"task"
.Type:
boolean
collapsed
Whether the list node is collapsed if its
kind
is"toggle"
.Type:
boolean
kind
The kind of list node.
Type:
"toggle" | "bullet" | "ordered" | "task"
order
The optional order of the list node.
Type:
null | number
defineList
ts
function defineList(): ListExtension