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 cli not working for subgraphs #459

Closed
furstenheim opened this issue Jan 16, 2017 · 2 comments
Closed

Mermaid cli not working for subgraphs #459

furstenheim opened this issue Jan 16, 2017 · 2 comments

Comments

@furstenheim
Copy link

furstenheim commented Jan 16, 2017

Very nice project.
I'm trying to use the mermaid cli for a subgraph but I cannot manage to get it to work

 graph TB;
    subgraph B;
    C --> D;
    C --> E;
    end;

Without the semicolons it works in the live editor

I've managed to create a simple graph with the cli, so it is correctly installed

@collingsr
Copy link

The solution/problem is found under issue #231 -- it doesn't like tab characters. Use spaces instead of tabs or just align everything left and it works.

@tylerlong
Copy link
Collaborator

Please don't end each line with a semicolon. Semicolon is the old syntax which might not work any more.

The following works in both live editor and cliP:

graph TB
    subgraph B
        C --> D
        C --> E
    end

By the way, here is the new cli project: https://github.com/mermaidjs/mermaid.cli

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
Bumps [svelte](https://github.com/sveltejs/svelte) from 3.43.2 to 3.44.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md)
- [Commits](sveltejs/svelte@v3.43.2...v3.44.0)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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

3 participants