0

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?

rrk
  • 1
  • 1

1 Answers1

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