forked from mvasigh/sveltekit-mdsvex-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdsvex.config.js
39 lines (38 loc) · 1.06 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
// import remarkGithub from 'remark-github';
// import remarkGfm from 'remark-gfm';
// import remarkMermaid from 'remark-mermaid';
import remarkAbbr from 'remark-abbr';
import remarkRelativeImages from "mdsvex-relative-images";
import remarkContainers from 'remark-containers';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import remarkFrontmatterImport from './mdsvexplugins/mdsvex-frontmatter-to-import.js'
export default {
layout: {
_: "./src/lib/mdsvex/layouts/default.svelte"
},
extensions: ['.svelte.md', '.md', '.svx'],
smartypants: {
dashes: 'oldschool',
// quotes: false
},
remarkPlugins: [
// [
// remarkGithub,
// {
// // Use your own repository
// repository: 'https://github.com/Amerlander/sveltekit-mdsvex-blog.git'
// }
// ],
[remarkAbbr, { expandFirst: true }],
remarkContainers,
// [remarkMermaid, { simple: true }],
// remarkGfm,
remarkFrontmatterImport,
remarkRelativeImages
],
rehypePlugins: [
rehypeSlug,
[rehypeAutolinkHeadings, { behavior: 'wrap' }]
]
};