From 37beedbe962e6f0e4cde40c3ca464034547358a4 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 Feb 2021 12:35:57 +0100 Subject: [PATCH] Mermaid dark theme --- www/common/diffMarked.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 71149b59f..2875e88fd 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -40,6 +40,7 @@ define([ Mermaid = _Mermaid; Mermaid.initialize({ gantt: { axisFormat: '%m-%d', }, + theme: (window.CryptPad_theme === 'dark') ? 'dark' : undefined, "themeCSS": mermaidThemeCSS, }); }