Make Mermaid JS character limit configurable #7615

Closed
opened 2025-11-02 07:31:26 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @moiflo033 on GitHub (Jul 22, 2021).

  • Gitea version (or commit ref): 1.14.4
  • Git version: 2.30.2
  • Operating system: docker
  • Log gist:

Description

Currently the character limit is 5000 chars. This isn't enough for more complex diagrams. I understand the concern that mermaid.js might take to long with larger diagramms, hence why i'm suggesting to make it configurable.

Screenshots

Originally created by @moiflo033 on GitHub (Jul 22, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.14.4 - Git version: 2.30.2 - Operating system: docker <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description <!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services. --> Currently the character limit is 5000 chars. This isn't enough for more complex diagrams. I understand the concern that mermaid.js might take to long with larger diagramms, hence why i'm suggesting to make it configurable. ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
Author
Owner

@silverwind commented on GitHub (Jul 22, 2021):

Agree, the 5000 limit was ported from GitLab's implementation, we should add a config option for it.

@silverwind commented on GitHub (Jul 22, 2021): Agree, the 5000 limit was ported from GitLab's implementation, we should add a config option for it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7615