mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 15:41: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()],
|
||||
markdown: {
|
||||
syntaxHighlight: {
|
||||
type: 'shiki',
|
||||
excludeLangs: ['mermaid', 'math'],
|
||||
},
|
||||
rehypePlugins: [rehypeMermaid],
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue