mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 23:51:26 +00:00
fix mermaid chart
This commit is contained in:
parent
2f279848b9
commit
f53b492431
2 changed files with 11 additions and 0 deletions
|
|
@ -20,6 +20,10 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
integrations: [sitemap(), svelte()],
|
integrations: [sitemap(), svelte()],
|
||||||
markdown: {
|
markdown: {
|
||||||
|
syntaxHighlight: {
|
||||||
|
type: 'shiki',
|
||||||
|
excludeLangs: ['mermaid', 'math'],
|
||||||
|
},
|
||||||
rehypePlugins: [rehypeMermaid],
|
rehypePlugins: [rehypeMermaid],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,13 @@ td code {
|
||||||
background: rgba(127, 127, 127, 0.12);
|
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 {
|
html {
|
||||||
font-family: "Maple Mono", "Maple Mono CN", monospace;
|
font-family: "Maple Mono", "Maple Mono CN", monospace;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue