diff --git a/src/assets/scripts/renderers/wx-renderer.js b/src/assets/scripts/renderers/wx-renderer.js index 43f582d..e1f4539 100644 --- a/src/assets/scripts/renderers/wx-renderer.js +++ b/src/assets/scripts/renderers/wx-renderer.js @@ -126,7 +126,7 @@ class WxRenderer { text = text.replace(/
`); return `
${text}`; }; - renderer.code = (text, lang) => { + renderer.code = (text, lang = "") => { if (lang.startsWith("mermaid")) { setTimeout(() => { window.mermaid?.run();