fix: First item in list must be a paragraph (#8632)

closes #8611

closes #8216
This commit is contained in:
Tom Moor
2025-03-11 21:56:17 -04:00
committed by GitHub
parent ed5bb8f8d9
commit a70a67235d
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ export default class CheckboxItem extends Node {
default: false,
},
},
content: "paragraph block*",
content: "block+",
defining: true,
draggable: true,
parseDOM: [

View File

@@ -26,7 +26,7 @@ export default class ListItem extends Node {
get schema(): NodeSpec {
return {
content: "paragraph block*",
content: "block+",
defining: true,
draggable: true,
parseDOM: [{ tag: "li" }],