Installation
Usage
The OrderedList extension is included in the StarterKit by default:Configuration
itemTypeName
The node name for list items.Specifies which node type to use for list items.
HTMLAttributes
Custom HTML attributes to add to the ordered list element.Custom HTML attributes that should be added to the rendered HTML tag.
keepMarks
Keep marks when splitting the list.Whether to preserve text marks when creating new list items.
keepAttributes
Keep attributes when splitting the list.Whether to preserve attributes when creating new list items.
Attributes
The OrderedList node supports the following attributes:start
The starting number for the list.type
The list marker type (e.g., ‘1’, ‘a’, ‘A’, ‘i’, ‘I’).Commands
toggleOrderedList
Toggles an ordered list. If the current node is already an ordered list, it converts it to paragraphs.Keyboard Shortcuts
- Mod-Shift-7: Toggle ordered list
Input Rules
The OrderedList extension supports Markdown-style input rules:- Type
1.followed by a space to create an ordered list - Type any number followed by
.and a space (e.g.,5.) to create a list starting at that number
Related Extensions
- ListItem - Required for ordered lists
- BulletList - For unordered lists