From 65786c2a92a708352056153ff1b0ceb903b268d4 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Mon, 11 Jul 2022 21:15:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=20p?= =?UTF-8?q?rosemirror=20=E5=A4=9A=E4=BD=99=E6=8D=A2=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=88#134=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/prosemirror/schema/nodes.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/prosemirror/schema/nodes.ts b/src/utils/prosemirror/schema/nodes.ts index c4b1c447..ae90bda7 100644 --- a/src/utils/prosemirror/schema/nodes.ts +++ b/src/utils/prosemirror/schema/nodes.ts @@ -58,8 +58,11 @@ const paragraph: NodeSpec = { }, } +// https://github.com/pipipi-pikachu/PPTist/issues/134 +const { hard_break, ...otherNodes } = nodes + export default { - ...nodes, + ...otherNodes, 'ordered_list': _orderedList, 'bullet_list': _bulletList, 'list_item': _listItem,