fix(document): render Mermaid in markdown preview (#2415)

This commit is contained in:
ooovenenoso
2026-06-04 09:25:15 -04:00
committed by GitHub
parent 93b3e108a6
commit e5d3f2211b

View File

@@ -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 {