diff --git a/mdsvex.options.js b/mdsvex.options.js index d481dcd..3f651ff 100644 --- a/mdsvex.options.js +++ b/mdsvex.options.js @@ -57,7 +57,15 @@ export const mdsvexOptions = { rehypePlugins: [ [urls, processUrl], rehypeSlug, - rehypeAutolinkHeadings, + [ + rehypeAutolinkHeadings, + { + behavior: 'wrap', + properties: { + className: `before:content-['#'] before:absolute before:-ml-[1em] before:text-neutral-100/0 dark:hover:before:text-neutral-200/50 hover:before:text-neutral-900/50 pl-[1em] -ml-[1em]` + } + } + ], [rehypeToc, { customizeTOC }] ], highlight: { diff --git a/src/components/featuredProjects.svelte b/src/components/featuredProjects.svelte index e491d76..9769b08 100644 --- a/src/components/featuredProjects.svelte +++ b/src/components/featuredProjects.svelte @@ -1,6 +1,7 @@ @@ -9,7 +10,7 @@
- {formatDate(post.date)} -
+