Never knew i could extend an existing node type with this setup:
export const Strikethrough = {
defineNodes: ["Strikethrough"],
props: [
styleTags({
'Strikethrough/...': tags.deleted
})
]
}
and
{
tag: tags.deleted,
textDecoration: 'line-through',
},
this works but is this the correct way of extending a node type?
Maybe a separate style tag for strike-through would be worthwhile.
I can vouch for this.