Skip to content

Commit 48683bb

Browse files
authored
🦋 feat: after render mermaid (#49)
1 parent 6b41e4e commit 48683bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/MarkdownPreview/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ const showText = () => {
252252
typingAnimationFrame = requestAnimationFrame(showText)
253253
},
254254
() => {
255+
renderMermaidProcess()
255256
256257
window.$ModalNotification.success({
257258
title: '生成完毕',

src/components/MarkdownPreview/plugins/mermaid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const mermaidPlugin = (md, options = {}) => {
139139

140140
// 触发 Mermaid 图表渲染 export
141141
processMermaid.fn = () => {
142-
requestAnimationFrame(processContainers)
142+
processContainers()
143143
}
144144
}
145145

0 commit comments

Comments
 (0)