post basic support
This commit is contained in:
+18
-2
@@ -1,7 +1,9 @@
|
||||
import adapter from "@sveltejs/adapter-static";
|
||||
import { mdsvex } from "mdsvex";
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
extensions: [".svelte", ".md"],
|
||||
kit: {
|
||||
files: {
|
||||
assets: "./static",
|
||||
@@ -14,8 +16,22 @@ const config = {
|
||||
fallback: undefined,
|
||||
precompress: false,
|
||||
strict: true
|
||||
})
|
||||
}
|
||||
}),
|
||||
},
|
||||
preprocess: [
|
||||
mdsvex({
|
||||
// The default mdsvex extension is .svx; this overrides that.
|
||||
extensions: [".md"],
|
||||
|
||||
layout: "$lib/md_layout.svelte",
|
||||
|
||||
// Adds IDs to headings, and anchor links to those IDs. Note: must stay in this order to work.
|
||||
rehypePlugins: [
|
||||
// rehypeSlug,
|
||||
// rehypeAutolinkHeadings,
|
||||
],
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user