Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: add support for all block types in outline list item

Abdullah Attad43e856fea03
diff --git a/packages/editor/src/extensions/outline-list-item/outline-list-item.ts b/packages/editor/src/extensions/outline-list-item/outline-list-item.ts
index 8d81db153..19c3b5e84 100644
--- a/packages/editor/src/extensions/outline-list-item/outline-list-item.ts
+++ b/packages/editor/src/extensions/outline-list-item/outline-list-item.ts
@@ -52,13 +52,14 @@ export const OutlineListItem = Node.create<ListItemOptions>({
};
},
- content: "paragraph+ (image* | list?)",
+ content: "block+",
defining: true,
parseHTML() {
return [
{
+ priority: 100,
tag: `li[data-type="${this.name}"]`
}
];