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

Large flowchart diagram failed to render on self-hosted gitea #5547

Open
anubane opened this issue May 28, 2024 · 1 comment
Open

Large flowchart diagram failed to render on self-hosted gitea #5547

anubane opened this issue May 28, 2024 · 1 comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@anubane
Copy link

anubane commented May 28, 2024

Description

I have created a large flowchart diagram using mermaid within markdown, which renders ok on VSCode (using Matt Bierner's Markdown Preview Mermaid Support extension). However, when I push it to my self-hosted gitea server, I get the following error message:

Mermaid source of 5397 characters exceeds the maximum allowed length of 5000.
Software Version
My gitea server version 1.21.5
Firefox version 121.0.1
Google Chrome version 121.0.6167.85
Mermaid version mermaid.83a93d40.js

Not sure about the mermaid version, though my gitea server has the above named file!

Steps to reproduce

The flowchart describes a proprietary algorithm, and as such I cannot reproduce it here. However, if any other details are needed, I can provide that.

Screenshots

image

On the rendered page, I right clicked and selected View page source, which showed the following:

image
@anubane anubane added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels May 28, 2024
@anubane
Copy link
Author

anubane commented May 28, 2024

In a markdown file, inside a mermaid diagram, we can initialize some values:

```mermaid
%%{init: {'theme': 'forest'}}%%
flowchart TB
    direction TB

	p0([start])
‎ ```

The way I have initialized the theme, is there a means to set character limit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant