post basic support

This commit is contained in:
2026-04-12 15:10:41 +01:00
parent ec181145b0
commit b61ecb13bd
11 changed files with 250 additions and 12 deletions
+18 -2
View File
@@ -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;