Fix custom start for ordered lists

This commit is contained in:
Markus Machatschek
2021-07-15 09:28:24 +02:00
committed by Hans Pagel
parent 97dd95199f
commit 2559ef1af1
2 changed files with 15 additions and 2 deletions

View File

@@ -77,8 +77,8 @@ export const OrderedList = Node.create<OrderedListOptions>({
wrappingInputRule(
inputRegex,
this.type,
match => ({ order: +match[1] }),
(match, node) => node.childCount + node.attrs.order === +match[1],
match => ({ start: +match[1] }),
(match, node) => node.childCount + node.attrs.start === +match[1],
),
]
},