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

flowchart subgraph connection #2524

Closed
mkyrc opened this issue Nov 30, 2021 · 3 comments
Closed

flowchart subgraph connection #2524

mkyrc opened this issue Nov 30, 2021 · 3 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Other Not an enhancement or a bug

Comments

@mkyrc
Copy link

mkyrc commented Nov 30, 2021

Hello,
I'd like to 'render' this flowchart:

flowchart TB
A --> B --> C
subgraph B
  direction LR
  B1 --> B2
end
Loading

other example: https://mermaid-js.github.io/mermaid/#/flowchart?id=direction-in-subgraphs

It is working for version 8.13.3 (vscode mermaid extension), but it is not working for mermaid 8.9.2 (GitLab CE 13.12.2 - latest on Synology).

The problem (with version 8.9.2) is, that "B" is subgraph and mermaid distributed with Gitlab 13.12.2 can't render it. It crash with error message: syntax error in graph.

I have two questions:

  1. Starting which version is possible to render above mermaid flowchart correctly? (is there any live tool in which I can test it with different mermaid versions?)
  2. I'm limited by synology GitLab package version - I can't upgrade it to the latest GitLab (and maybe mermaid distributed with will be latest/newer). The question is, if somebody know, is it possible upgrade only mermaid inside existing Gitlab 13.12.2 running on synology?

Thanks,
martin

@mkyrc mkyrc added the Type: Other Not an enhancement or a bug label Nov 30, 2021
@github-actions github-actions bot added the Status: Triage Needs to be verified, categorized, etc label Nov 30, 2021
@Yash-Singh1
Copy link
Member

Starting which version is possible to render above mermaid flowchart correctly? (is there any live tool in which I can test it with different mermaid versions?)

We have a live tool that gives the preview of the up to date version of mermaid, at mermaid.live, but it doesn't yet support multiple versions of mermaid. Doing a search on the repository, it seems this was introduced in PR #2082 (ff75122) which was released in mermaid 8.11.0.

I'm limited by synology GitLab package version - I can't upgrade it to the latest GitLab (and maybe mermaid distributed with will be latest/newer). The question is, if somebody know, is it possible upgrade only mermaid inside existing Gitlab 13.12.2 running on synology?

That would be an issue to open up in GitLab. However, the only alternative I could think of would be to use the live editor and copy the markdown output over there.

@mkyrc
Copy link
Author

mkyrc commented Dec 1, 2021

@Yash-Singh1 thank you for reply. I know mermaid.live - there is rendering of above mermaid flowchart working (I don't know which version is used there). Also in vscode with mermaid extension (it uses v8.13.3).

I will try to ask on GitLab.

@mkyrc mkyrc closed this as completed Dec 1, 2021
@Yash-Singh1
Copy link
Member

I don't know which version is used there

You can find the version in the top left corner in the navigation bar.
81B7D730-E8B3-430C-8C55-BCEEFB0FDBE5

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: Other Not an enhancement or a bug
Projects
None yet
Development

No branches or pull requests

2 participants