Skip to content

Commit 0c5b8e7

Browse files
Custom anchor slugify
1 parent 6f88946 commit 0c5b8e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.vitepress/config.mts

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ export default async () => {
2626
]
2727
},
2828
cleanUrls: true,
29+
markdown: {
30+
anchor: {
31+
slugify: (s: string) => s.replace(' ', '-').toLowerCase()
32+
}
33+
}
2934
})
3035

3136
}

0 commit comments

Comments
 (0)