We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbf4256 commit a6d0a70Copy full SHA for a6d0a70
layouts/partials/scripts/mermaid.html
@@ -39,8 +39,9 @@
39
40
var settings = norm(mermaid.mermaidAPI.defaultConfig, params);
41
settings.startOnLoad = true;
42
- const isDark = $('html[data-bs-theme="dark"]').length;
43
- settings.theme = isDark ? 'dark' : 'base';
+ if ($('html[data-bs-theme="dark"]').length) {
+ settings.theme = 'dark';
44
+ }
45
mermaid.initialize(settings);
46
47
// Handle light/dark mode theme changes
0 commit comments