Arkpad
FeaturesRich Content

List

Organize content into bulleted or ordered lists.

Type: Node · Category: Rich Content

Lists organize content into sequential items. Supports both bullet (unordered) and numbered (ordered) lists.

Demo

Installation

import { BulletList } from "@arkpad/extension-bullet-list";
import { OrderedList } from "@arkpad/extension-ordered-list";
// Note: ListItem is loaded automatically by lists, but can be imported explicitly:
import { ListItem } from "@arkpad/extension-list-item";

Commands

// Toggles the current block between a bullet list and a paragraph
editor.runCommand("toggleBulletList");

// Toggles the current block between an ordered list and a paragraph
editor.runCommand("toggleOrderedList");

// Alignment & indent navigation
editor.runCommand("sinkListItem"); // Indent / Nest list item
editor.runCommand("liftListItem"); // Outdent / Unnest list item

Keyboard Shortcuts & Navigation

KeyAction
Mod-Shift-8Toggles bullet list
Mod-Shift-7Toggles ordered list
EnterSplits list item / exits list if empty
TabIndents current list item (nesting)
Shift-TabOutdents current list item (unnesting)

Markdown Input Rules

Type these patterns at the beginning of a line followed by a space to quickly build lists:

PatternResult
- or + or * Bullet List
1. (or any number + . )Ordered List

Active State

const isBullet = editor.isActive("bulletList");
const isOrdered = editor.isActive("orderedList");