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

@@ -27,7 +27,6 @@ export default {
TableOfContents,
],
content: `
<toc></toc>
<h2>1 heading</h2>
<p>paragraph</p>
<h3>1.1 heading</h3>
@@ -38,6 +37,7 @@ export default {
<p>paragraph</p>
<h3>2.1 heading</h3>
<p>paragraph</p>
<toc></toc>
`,
})
},