rename attributes to HTMLAttributes

This commit is contained in:
Philipp Kühn
2020-11-13 16:07:20 +01:00
parent 5bccbacf32
commit c840a562de
25 changed files with 55 additions and 51 deletions

View File

@@ -31,12 +31,12 @@ const OrderedList = createNode({
]
},
renderHTML({ attributes }) {
const { start, ...attributesWithoutStart } = attributes
renderHTML({ HTMLAttributes }) {
const { start, ...attributesWithoutStart } = HTMLAttributes
return start === 1
? ['ol', attributesWithoutStart, 0]
: ['ol', attributes, 0]
: ['ol', HTMLAttributes, 0]
},
addCommands() {