slate-edit-list
Version:
A Slate plugin to handle keyboard events in lists.
36 lines (33 loc) • 759 B
YAML
nodes:
# orphan item
- kind: block
type: list_item
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
text: "Orphan"
- kind: block
type: ul_list
nodes:
- kind: block
type: list_item
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
text: "Valid item"
# Item that contains another item
- kind: block
type: list_item
nodes:
- kind: block
type: list_item
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
text: "Direct child of another item"