Skip to content

Commit 9c0bad8

Browse files
committed
chore: update markdown renderer
1 parent dd5dbb2 commit 9c0bad8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"katex": "^0.16.25",
148148
"lint-staged": "^16.2.6",
149149
"lucide-vue-next": "^0.544.0",
150-
"markstream-vue": "0.0.2",
150+
"markstream-vue": "0.0.3-beta.2",
151151
"mermaid": "^11.12.1",
152152
"minimatch": "^10.1.1",
153153
"monaco-editor": "^0.52.2",

src/renderer/src/components/markdown/MarkdownRenderer.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ setCustomComponents({
104104
if (isMermaid) {
105105
// 对于 Mermaid 代码块,直接返回 MermaidNode 组件
106106
return h(MermaidBlockNode, {
107-
..._props
107+
..._props,
108+
isStrict: true
108109
})
109110
}
110111
return h(CodeBlockNode, {

0 commit comments

Comments
 (0)