diff --git a/src/components/markdown/Heading.astro b/src/components/markdown/Heading.astro index 87b6d5d..6607f9a 100644 --- a/src/components/markdown/Heading.astro +++ b/src/components/markdown/Heading.astro @@ -11,32 +11,51 @@ const { node, headings } = Astro.props as Props; const HeadingLevel = `h${node.depth}` const heading_line = node.position.start.line -const slug = headings.find((entry)=>(entry.line == heading_line)).slug +const entry = headings.find((entry)=>(entry.line == heading_line)) --- - - -
- {node.children.map((node)=>( - + +
+ {node.children.map((node)=>( + ))} +
+
-
- + +