add anchors to table of contents (wip)

This commit is contained in:
Hans Pagel
2021-03-11 00:47:58 +01:00
parent 746d22a05a
commit 87059c9b46
3 changed files with 49 additions and 8 deletions

View File

@@ -24,4 +24,19 @@ export default Node.create({
addNodeView() {
return VueNodeViewRenderer(Component)
},
addGlobalAttributes() {
return [
{
types: [
'heading',
],
attributes: {
id: {
default: null,
},
},
},
]
},
})