prosekit/extensions/list
Interfaces
Section titled “Interfaces”ListAttrs
Section titled “ListAttrs”The attributes of a list node.
Properties
Section titled “Properties”-
kind?:"toggle"|"bullet"|"ordered"|"task" -
The kind of list node.
-
order?:number|null -
The optional order of the list node.
-
checked?:boolean -
Whether the list node is checked if its
kindis"task".
-
collapsed?:boolean -
Whether the list node is collapsed if its
kindis"toggle".
ListOptions
Section titled “ListOptions”Options for the list keymap.
Properties
Section titled “Properties”-
strict?:boolean -
Whether the indent, dedent and split key bindings run in strict mode. In strict mode a list node is never more than one level deeper than the block before it, so no list node ends up with a hidden marker. Tab on the first item of a list then does nothing.
Default
Section titled “Default”false
Functions
Section titled “Functions”insertList()
Section titled “insertList()”-
function insertList(attrs?:ListAttributes):Command
defineList()
Section titled “defineList()”-
function defineList():ListExtension