-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdsvex.config.js
58 lines (53 loc) · 1.62 KB
/
mdsvex.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
57
58
// @see https://mdsvex.com/docs#options
import { defineMDSveXConfig as defineConfig } from 'mdsvex';
import { remarkAutolinker } from '@kasisoft/remark-autolinker';
import { remarkImagetools } from '@kasisoft/remark-imagetools';
import { remarkSvelteAutoImport } from '@kasisoft/remark-svelte-auto-import';
const config = defineConfig({
extensions: ['.svelte.md', '.md', '.svx'],
remarkPlugins: [
[
remarkImagetools,
{
debug: ['ScriptBefore', 'ScriptAfter'],
presets: [
{
name: "mobile",
width: 300
}
]
}
],
[
remarkSvelteAutoImport,
{
debug: ['ScriptBefore', 'ScriptAfter'],
scriptTS: true,
directories: [
'src/lib/components/'
],
localComponents: {
'src/lib/': '$lib'
},
patterns: [
'**/*.svelte',
'**/*.svx'
]
}
],
[
remarkAutolinker,
{
debug: 'Default',
all: true,
caseInsensitive: true,
links: [
{ key: 'Java', link: 'https://www.java.com/de/' },
{ key: 'Spring', link: 'https://spring.io/' },
{ key: 'Spring boot', link: 'https://spring.io/projects/spring-boot' }
]
}
]
],
});
export default config;