fix mermaid chart

This commit is contained in:
ClovertaTheTrilobita 2026-04-14 13:30:40 +03:00
parent 2f279848b9
commit f53b492431
2 changed files with 11 additions and 0 deletions

View file

@ -20,6 +20,10 @@ export default defineConfig({
},
integrations: [sitemap(), svelte()],
markdown: {
syntaxHighlight: {
type: 'shiki',
excludeLangs: ['mermaid', 'math'],
},
rehypePlugins: [rehypeMermaid],
},
})

View file

@ -49,6 +49,13 @@ td code {
background: rgba(127, 127, 127, 0.12);
}
article svg.flowchart,
article svg[class*="flowchart"],
article svg[id^="mermaid-"] {
display: block;
margin: 1.5rem auto;
}
html {
font-family: "Maple Mono", "Maple Mono CN", monospace;
background-color: #ffffff;