add heading slugs
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import { mdsvex } from 'mdsvex';
|
||||
import staticAdapter from '@sveltejs/adapter-static';
|
||||
import slug from './src/lib/slug.js';
|
||||
|
||||
|
||||
const config = {
|
||||
extensions: ['.svelte', '.svx'],
|
||||
preprocess: mdsvex({layout: './src/lib/Post.svelte'}),
|
||||
preprocess: mdsvex({
|
||||
layout: './src/lib/Post.svelte',
|
||||
rehypePlugins: [slug],
|
||||
}),
|
||||
kit: {
|
||||
// hydrate the <div id="svelte"> element in src/app.html
|
||||
target: '#svelte',
|
||||
|
||||
Reference in New Issue
Block a user