This commit is contained in:
Philipp Kühn
2020-09-22 21:54:52 +02:00
parent 87166ab8c8
commit a865ec4b4e
5 changed files with 7 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ export default new Node()
tag: 'ol',
getAttrs: node => ({
order: (node as HTMLElement).hasAttribute('start')
? +(node as HTMLElement).getAttribute('start')
? parseInt((node as HTMLElement).getAttribute('start') || '')
: 1,
}),
}],