bettertend/frontend/node_modules/prosemirror-schema-list/src
Jason Fraser 1ea6cf49ad Initial commit: contract management frontend built 2025-08-13 23:45:28 -04:00
..
README.md Initial commit: contract management frontend built 2025-08-13 23:45:28 -04:00
schema-list.ts Initial commit: contract management frontend built 2025-08-13 23:45:28 -04:00

README.md

This module exports list-related schema elements and commands. The commands assume lists to be nestable, with the restriction that the first child of a list item is a plain paragraph.

These are the node specs:

@orderedList @bulletList @listItem

@addListNodes

Using this would look something like this:

const mySchema = new Schema({
  nodes: addListNodes(baseSchema.spec.nodes, "paragraph block*", "block"),
  marks: baseSchema.spec.marks
})

The following functions are commands and utilities:

@wrapInList @wrapRangeInList @splitListItem @splitListItemKeepMarks @liftListItem @sinkListItem