Provides list-related schema elements (orderedList, bulletList, listItem) and commands (wrapInList, splitListItem, liftListItem, sinkListItem) for ProseMirror, a collaborative rich-text editor framework. Current stable version is 1.5.1. Released as a standalone package in the ProseMirror ecosystem, it follows semver and the same release cadence as core modules. Key differentiators: built specifically for ProseMirror's schema-based architecture, works with any node type, and supports nested lists out of the box. Unlike generic list implementations, it integrates deeply with ProseMirror's transaction system and selection handling.
npm install prosemirror-schema-listNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a ProseMirror editor with list support: add list nodes to the basic schema, then wrap a paragraph in a bullet list.
Wrap command names with the new export (e.g., wrapInList(schema.nodes.orderedList) instead of wrapInList(schema.nodes.orderedList, ...)).
Update command calls: previously wrapInList('orderedList'), now wrapInList(schema.nodes.orderedList).Ensure schema content for lists includes 'listItem+', e.g., orderedList: {content: 'listItem+', group: 'block'}.Check that the command is only enabled when selection is inside a list item (use custom keymap or menu).
Manually define list nodes in your schema spec instead of using addListNodes.
Use: import { wrapInList } from 'prosemirror-schema-list'Run: npm install prosemirror-schema-list
Add list nodes using addListNodes(schema.spec.nodes, 'paragraph block*', 'block') or manually define orderedList/bulletList.
Ensure mySchema.nodes.listItem exists; you may need to include 'listItem' in your schema nodes.