Skip to content

Commit 1df5319

Browse files
committed
fix(markdown): render mermaid (#231)
1 parent 5a744f5 commit 1df5319

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/renderer/components/markdown/TheMarkdown.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ const initMermaid = () => {
9898
}
9999
100100
onMounted(() => {
101-
initMermaid()
102101
render()
103102
})
104103
@@ -200,6 +199,8 @@ const render = () => {
200199
: html.replace(re, `src="${path}/`)
201200
202201
renderedHtml.value = html
202+
203+
nextTick(() => initMermaid())
203204
}
204205
205206
const onLink = async (e: Event) => {

0 commit comments

Comments
 (0)