From e5d3f2211b8ef7dcea68b784d45b9371ee71f4bb Mon Sep 17 00:00:00 2001 From: ooovenenoso <120500656+ooovenenoso@users.noreply.github.com> Date: Thu, 4 Jun 2026 09:25:15 -0400 Subject: [PATCH] fix(document): render Mermaid in markdown preview (#2415) --- static/js/document.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/document.js b/static/js/document.js index 6696d60..1d38121 100644 --- a/static/js/document.js +++ b/static/js/document.js @@ -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 {