fix(document): render Mermaid in markdown preview (#2415)
This commit is contained in:
parent
93b3e108a6
commit
e5d3f2211b
1 changed files with 3 additions and 0 deletions
|
|
@ -8554,6 +8554,9 @@ import * as Modals from './modalManager.js';
|
|||
if (window.hljs) {
|
||||
preview.querySelectorAll('pre code').forEach(b => window.hljs.highlightElement(b));
|
||||
}
|
||||
if (markdownModule && markdownModule.renderMermaid) {
|
||||
markdownModule.renderMermaid(preview);
|
||||
}
|
||||
preview.style.display = '';
|
||||
wrap.style.display = 'none';
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue