mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-08-05 02:45:28 +00:00
fix(document): render Mermaid in markdown preview (#2415)
This commit is contained in:
parent
6213f8f76b
commit
2bfd4533fa
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