-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdsvex.config.js
44 lines (42 loc) · 1.13 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
// import remarkGithub from 'remark-github';
// import remarkAbbr from 'remark-abbr';
// import rehypeSlug from 'rehype-slug';
// import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import { defineMDSveXConfig as defineConfig } from 'mdsvex';
import highlighter from './src/lib/mdsvexplugins/codeHighlighter.js';
// import mdsvexFormatterToImport from './src/lib/mdsvexplugins/mdsvex-formatter-to-import.js';
// import mdsvexUrlToImport from './src/lib/mdsvexplugins/mdsvex-url-to-import.js';
const config = defineConfig({
extensions: ['.md'], //'.svelte',
layout: {
default: './src/lib/layouts/defaultLayout.svelte',
},
smartypants: {
dashes: 'oldschool'
},
highlight: {
highlighter
},
// remarkPlugins: [
// mdsvexFormatterToImport
// mdsvexUrlToImport
// [
// remarkGithub,
// {
// // TODO: Replace with your own repository
// repository: 'https://github.com/mvasigh/sveltekit-mdsvex-blog.git'
// }
// ],
// remarkAbbr
// ],
// rehypePlugins: [
// rehypeSlug,
// [
// rehypeAutolinkHeadings,
// {
// behavior: 'wrap'
// }
// ]
// ]
});
export default config;