feat(ordered-list): add type attribute (#5344)

This commit is contained in:
Bastian Rihm 2024-08-09 08:00:14 +02:00 committed by GitHub
parent e31673d347
commit da7b337c3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@tiptap/extension-ordered-list": minor
---
Support the `type` attribute for ordered lists

View File

@ -84,6 +84,10 @@ export const OrderedList = Node.create<OrderedListOptions>({
: 1 : 1
}, },
}, },
type: {
default: null,
parseHTML: element => element.getAttribute('type'),
},
} }
}, },