#1542 Making sure user overrides from directives ocerrides properly

This commit is contained in:
Knut Sveidqvist
2020-07-19 15:02:53 +02:00
parent 8a018aa0f2
commit 4d280ff010
11 changed files with 561 additions and 273 deletions

View File

@@ -7,7 +7,7 @@ import { logger } from './logger';
const themes = {};
for (const themeName of ['default', 'forest', 'dark', 'neutral']) {
themes[themeName] = require(`./theme-${themeName}.js`).default;
themes[themeName] = require(`./themes/theme-${themeName}.js`);
}
/**
* **Configuration methods in Mermaid version 8.6.0 have been updated, to learn more[[click here](8.6.0_docs.md)].**
@@ -59,7 +59,7 @@ const config = {
* </pre>
*/
theme: 'default',
themeVariables: themes.default,
themeVariables: themes.get,
themeCSS: undefined,
/* **maxTextSize** - The maximum allowed size of the users text diamgram */
maxTextSize: 50000,