Skip to main content
The BulletList extension allows you to create unordered bullet lists. It requires the ListItem extension to function properly.

Installation

Usage

The BulletList extension is included in the StarterKit by default:
To use it standalone:

Configuration

itemTypeName

The node name for list items.
string
default:"'listItem'"
Specifies which node type to use for list items.

HTMLAttributes

Custom HTML attributes to add to the bullet list element.
Record<string, any>
default:"{}"
Custom HTML attributes that should be added to the rendered HTML tag.

keepMarks

Keep marks when splitting the list.
boolean
default:"false"
Whether to preserve text marks when creating new list items.

keepAttributes

Keep attributes when splitting the list.
boolean
default:"false"
Whether to preserve attributes when creating new list items.

Commands

toggleBulletList

Toggles a bullet list. If the current node is already a bullet list, it converts it to paragraphs.

Keyboard Shortcuts

  • Mod-Shift-8: Toggle bullet list

Input Rules

The BulletList extension supports Markdown-style input rules:
  • Type - followed by a space to create a bullet list
  • Type * followed by a space to create a bullet list
  • Type + followed by a space to create a bullet list

Source Code

View the source code on GitHub: packages/extension-list/src/bullet-list/bullet-list.ts