I am using mermaid 8.8.1 and trying to render a large diagram and getting an error "Maximum text size in diagram exceeded". Another answer here Maximum Text Size In Diagram Exceeded recommends overriding "maxTextSize" setting, but I dont find this in the mermaidAPI configuration settings https://github.com/mermaid-js/mermaid/blob/develop/docs/Setup.md#mermaidapi-configuration-defaults. Where can I find this setting or is there another work around to fix this error?
Asked
Active
Viewed 1,271 times
0
-
The workaround worked great for me. – james.garriss Nov 17 '22 at 13:50
1 Answers
0
which in defaultConfig.js
const config = {
theme: 'default',
themeVariables: theme['default'].getThemeVariables(),
themeCSS: undefined,
/* **maxTextSize** - The maximum allowed size of the users text diagram */
maxTextSize: 50000,
// ...
}

Carson
- 6,105
- 2
- 37
- 45