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")}>`);
|
text = text.replace(/<p.*?>/g, `<p ${getStyles("blockquote_p")}>`);
|
||||||
return `<blockquote ${getStyles("blockquote")}>${text}</blockquote>`;
|
return `<blockquote ${getStyles("blockquote")}>${text}</blockquote>`;
|
||||||
};
|
};
|
||||||
renderer.code = (text, lang) => {
|
renderer.code = (text, lang = "") => {
|
||||||
if (lang.startsWith("mermaid")) {
|
if (lang.startsWith("mermaid")) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.mermaid?.run();
|
window.mermaid?.run();
|
||||||
|
Loading…
Reference in New Issue
Block a user