rename attributes to HTMLAttributes
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user