mjbvz / vscode-markdown-mermaid

Adds Mermaid diagram and flowchart support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid
MIT License
629 stars 112 forks source link

Issue "Maximum Text Size In Diagram Exceeded" #258

Open patrickpl opened 1 month ago

patrickpl commented 1 month ago

For long documents I receive the error "Maximum Text Size In Diagram Exceeded". This is due to mermaid limiting the diagram to 50000 characters.

Mermaid can be configured to allow a different character amount by setting maxTextSize:

mermaid.initialize({
  maxTextSize: 90000
});

It would be great to have a configuration option in vscode to set the maxTextSize

Further information: https://stackoverflow.com/questions/61870481/maximum-text-size-in-diagram-exceeded https://mermaid.js.org/config/schema-docs/config.html

mjbvz commented 2 weeks ago

Please share an example diagram that demonstrates the issue