mirror of
https://github.com/LukeHagar/sveltesociety.dev.git
synced 2025-12-06 04:21:38 +00:00
Fix recipe anchor links
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import path from 'node:path';
|
||||
import adapter from '@sveltejs/adapter-static';
|
||||
import preprocess from 'svelte-preprocess';
|
||||
import { mdsvex, escapeSvelte } from 'mdsvex';
|
||||
import hljs from 'highlight.js';
|
||||
import path from 'path';
|
||||
import { mdsvex, escapeSvelte } from 'mdsvex';
|
||||
import rehypeSlug from 'rehype-slug';
|
||||
import preprocess from 'svelte-preprocess';
|
||||
|
||||
const extensions = [`.svelte`, '.md', `.mdx`, '.svx'];
|
||||
|
||||
@@ -23,7 +24,8 @@ const config = {
|
||||
const highlighted = escapeSvelte(hljs.highlightAuto(code).value);
|
||||
return `{@html \`<pre class="hljs"><code>${highlighted}</code></pre>\`}`;
|
||||
}
|
||||
}
|
||||
},
|
||||
rehypePlugins: [rehypeSlug]
|
||||
})
|
||||
],
|
||||
extensions: extensions,
|
||||
|
||||
Reference in New Issue
Block a user