Skip to content

Commit c5f2353

Browse files
committed
fix(blog): exclude mermaid from shiki so rehype-mermaid can render diagrams
1 parent d3ec7ce commit c5f2353

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ export default defineConfig({
55
site: 'https://moistcode.github.io',
66
output: 'static',
77
markdown: {
8-
syntaxHighlight: 'shiki',
8+
syntaxHighlight: {
9+
type: 'shiki',
10+
excludeLangs: ['mermaid'],
11+
},
912
rehypePlugins: [
1013
[
1114
rehypeMermaid,

0 commit comments

Comments
 (0)