-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
56 lines (53 loc) · 1.39 KB
/
svelte.config.js
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
51
52
53
54
55
56
import adapter from '@sveltejs/adapter-static';
import { mdsvex } from 'mdsvex';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeSlug from 'rehype-slug';
import remarkMath from 'remark-math';
import remarkTwemoji from 'remark-twemoji';
import remarkGfm from 'remark-gfm';
import remarkExtendedTable from 'remark-extended-table';
import rehypeKatexSvelte from "rehype-katex-svelte";
import { prettyCode } from './remark/code.js';
import { rehypeEscapeHighlight, remarkEscapeInlineCode, remarkUnescapeHighlight } from './remark/unescapehighlight.js';
/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter({
precompress: true
}),
prerender: {
origin: "https://danbulant.eu",
handleMissingId: "warn"
}
},
extensions: ['.svelte', '.md'],
preprocess: [
mdsvex({
extensions: ['.md'],
layout: {
_: "./src/lib/layouts/post.svelte"
},
smartypants: {
quotes: false,
backticks: "all"
},
highlight: false,
rehypePlugins: [
rehypeSlug,
rehypeAutolinkHeadings,
rehypeKatexSvelte,
rehypeEscapeHighlight
],
remarkPlugins: [
remarkGfm,
remarkMath,
remarkTwemoji,
remarkExtendedTable,
remarkUnescapeHighlight,
prettyCode,
remarkEscapeInlineCode
]
})
]
};
export default config;