This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
mdsvex.config.cjs
52 lines (52 loc) · 1.69 KB
/
mdsvex.config.cjs
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
module.exports = {
extensions: ['.svx', '.md'],
smartypants: {
dashes: 'oldschool',
},
remarkPlugins: [
// [require("remark-github"), {
// repository: "https://github.com/svelte-add/mdsvex.git", // (use your own repository)
// }],
// require("remark-abbr"),
],
rehypePlugins: [
require('rehype-slug'),
[
require('rehype-autolink-headings'),
{
behavior: 'prepend',
content: {
type: 'element',
tagName: 'svg',
properties: {
className: [],
xmlns: 'http://www.w3.org/2000/svg',
fill: 'none',
viewBox: '0 0 24 24',
stroke: 'currentColor',
},
children: [
{
type: 'element',
tagName: 'path',
properties: {
'stroke-linecap': 'round',
'stroke-linejoin': 'round',
'stroke-width': '2',
d:
'M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1',
},
children: [],
},
],
},
},
],
],
highlight: {
alias: {
svelte: 'html',
jsonc: 'json',
},
},
};