First task
Second task
Nested task
Third task
Lists
Ordered and unordered lists retain their item identities when you nest or move them.
Concept
List structure
ToggleList wraps a block or changes the kind of its existing list. Indent and Outdent move the item instead of rebuilding it, preserving the caret.
Rearrange the items
Switch between bullets and numbers; use Tab or the commands to nest an item.
8 words · 15 nodes
- First task
- Second task
- Nested task
- Third task
Source
List commands
The payload identifies the list kind; indentation commands operate on the selected item.
scala
session.dispatch(ListCommands.ToggleList, ListKind.Unordered)
session.dispatch(ListCommands.ToggleList, ListKind.Ordered)
session.dispatch(ListCommands.Indent)
session.dispatch(ListCommands.Outdent)