-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathmdsx.config.js
More file actions
23 lines (21 loc) · 745 Bytes
/
mdsx.config.js
File metadata and controls
23 lines (21 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig } from 'mdsx';
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { rehypeGithubAlerts } from 'rehype-github-alerts';
import rehypePrettyCode from 'rehype-pretty-code';
import rehypeSlug from 'rehype-slug';
import remarkGfm from 'remark-gfm';
const __dirname = fileURLToPath(new URL('.', import.meta.url));
export const mdsxConfig = defineConfig({
extensions: ['.md'],
remarkPlugins: [remarkGfm],
rehypePlugins: [rehypeSlug, rehypePrettyCode, rehypeGithubAlerts],
blueprints: {
default: {
path: resolve(__dirname, './src/components/markdown/default/blueprint.svelte'),
},
page: {
path: resolve(__dirname, './src/components/markdown/page/blueprint.svelte'),
},
},
});