-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvelte.config.js
More file actions
50 lines (48 loc) · 1.08 KB
/
svelte.config.js
File metadata and controls
50 lines (48 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { mdsvex } from 'mdsvex';
import rehypeExternalLinks from 'rehype-external-links';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: [
vitePreprocess(),
mdsvex({
extensions: ['.svx', '.md'],
rehypePlugins: [
rehypeExternalLinks,
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: 'prepend',
properties: {
className: ['header-link'],
title: 'Permalink',
ariaHidden: 'true'
},
content: {
type: 'element',
tagName: 'span',
properties: {},
children: [
{
type: 'text',
value: '#'
}
]
}
}
]
]
})
],
extensions: ['.svelte', '.md'],
kit: {
adapter: adapter()
}
};
export default config;