Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mermaid MaxTextSize support #4761

Open
schenardie opened this issue Nov 19, 2024 · 2 comments
Open

Mermaid MaxTextSize support #4761

schenardie opened this issue Nov 19, 2024 · 2 comments

Comments

@schenardie
Copy link

  • [ X] I agree to follow the Code of Conduct that this project adheres to.
  • [ X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
When adding Mermaid diagrams they are limited to the default 50000 characters limit. A config can be made to increase that limit to any desired maxtextsize
Describe the solution you'd like
Implement a function to allow configuration of maxTextSize as per https://mermaid.js.org/config/schema-docs/config.html#maxtextsize

Thanks

@davidjgraph
Copy link
Collaborator

Not sure we really want to start exposing mermaid config, as it's not core functionality. If we just set it to 500k, should that cover everything?

@schenardie
Copy link
Author

I have one of my graphs here with 503k characters.

I'm using mermaid with thumbnails, each image is base64 encoded with 50x50 and it has around 4k characters. I know this is my use case only but does increasing that limit to an absurd number would cause any issues on your side??

If not, I really can't say which number would be sensible but I don't think it matters, could be on the house of Millions.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants