rework rehype plugin

This commit is contained in:
2023-08-19 12:45:02 -07:00
parent b68220fa2e
commit 8272a4bd43
7 changed files with 451 additions and 54 deletions

View File

@@ -1,7 +1,9 @@
import { mdsvex } from 'mdsvex';
import staticAdapter from '@sveltejs/adapter-static';
import svp from 'svelte-preprocess';
import slug from './src/lib/slug.js';
// import slug from './src/lib/slug.js';
// import { addDropcaps } from './src/lib/dropcapify.js';
import { localPlugins } from './src/plugins/rehype.js';
const config = {
@@ -9,7 +11,7 @@ const config = {
preprocess: [
mdsvex({
layout: './src/lib/Post.svelte',
rehypePlugins: [slug],
rehypePlugins: [localPlugins],
}),
svp.scss(),
],