mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
parent
72cb6da810
commit
9461585d9e
@ -126,7 +126,7 @@ class WxRenderer {
|
||||
text = text.replace(/<p.*?>/g, `<p ${getStyles("blockquote_p")}>`);
|
||||
return `<blockquote ${getStyles("blockquote")}>${text}</blockquote>`;
|
||||
};
|
||||
renderer.code = (text, lang) => {
|
||||
renderer.code = (text, lang = "") => {
|
||||
if (lang.startsWith("mermaid")) {
|
||||
setTimeout(() => {
|
||||
window.mermaid?.run();
|
||||
|
Loading…
Reference in New Issue
Block a user