diff --git a/example/src/App.svelte b/example/src/App.svelte index f3ce692..d46e2c0 100644 --- a/example/src/App.svelte +++ b/example/src/App.svelte @@ -12,6 +12,7 @@ import { setEditorContext } from "@/states/toolbar" import { createEditor } from "@/utils/editor" import { aligns, headingLevels } from "@/utils/editor-presets" + import TableOfContents from "@/components/TableOfContents.svelte" import { onMount } from "svelte" /* @@ -88,5 +89,6 @@
+
diff --git a/example/src/components/TableOfContents.svelte b/example/src/components/TableOfContents.svelte new file mode 100644 index 0000000..f04c1ed --- /dev/null +++ b/example/src/components/TableOfContents.svelte @@ -0,0 +1,92 @@ + + + + +
+

Table of Contents

+ +
+ +