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

Tabs & subgraphs cause rendering error #336

Closed
nayrangnu opened this issue Mar 26, 2016 · 4 comments
Closed

Tabs & subgraphs cause rendering error #336

nayrangnu opened this issue Mar 26, 2016 · 4 comments

Comments

@nayrangnu
Copy link

I spent a long time trying to figure out why my code was not rendering after I tried adding a subgraph. Eventually, I realized that using spaces instead of tabs makes it render. Perhaps something in the subgraph code?

@nienaber
Copy link

I had the same issue.

graph TB
   subgraph One
      a1-->a2
   end

This will not compile for CLI either if there are tabs instead of spaces for the indentation. Using mermaid 6.0.0 and phantomJS 2.1.1

@tylerlong
Copy link
Collaborator

I confirm that it is an issue. Tabs doesn't work.

https://mermaidjs.github.io/mermaid-live-editor/#/edit/Z3JhcGggVEIKCXN1YmdyYXBoIE9uZQoJCWExLS0-YTIKCWVuZA

No syntax error but there is also no output chart.

@tylerlong
Copy link
Collaborator

It seems that this issue only happens with subgraph. There is no problem if no subgraph: https://mermaidjs.github.io/mermaid-live-editor/#/edit/Z3JhcGggVEIKCWExLS0-YTIK

@tylerlong
Copy link
Collaborator

mgenereu pushed a commit to mgenereu/mermaid that referenced this issue Jun 25, 2022
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