You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			|  | 3 years ago | |
|---|---|---|
| .. | ||
| README.md | 3 years ago | |
| schema-list.ts | 3 years ago | |
		
			
				
				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:
@wrapInList @splitListItem @liftListItem @sinkListItem