We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c65a80 commit 3c389a9Copy full SHA for 3c389a9
src/markdoc/nodes/Heading.svelte
@@ -81,5 +81,5 @@
81
class:web-snap-location-references={id && inReferences}
82
class="{headingClass} text-primary scroll-m-32 font-medium"
83
>
84
- <a href={`#${href}`} class="">{@render children()}</a>
+ <a href={`#${id ?? slugify(element?.innerText ?? '')}`} class="">{@render children()}</a>
85
</svelte:element>
0 commit comments