feat: 添加对 Ace 编辑器的支持和样式优化

This commit is contained in:
2026-04-11 19:43:30 +08:00
parent 7bae6d487d
commit 5a39432029
3 changed files with 198 additions and 116 deletions

View File

@@ -23,6 +23,10 @@ export const mermaidRender = (element: HTMLElement, cdn = Constants.CDN, theme:
fontFamily: MERMAID_FONT_FAMILY,
fontSize: MERMAID_FONT_SIZE,
startOnLoad: false,
themeVariables: {
fontFamily: MERMAID_FONT_FAMILY,
fontSize: MERMAID_FONT_SIZE,
},
flowchart: {
htmlLabels: false,
useMaxWidth: !0