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

Add shebang support to diagrams #365

Closed
ssbarnea opened this issue Jun 21, 2016 · 1 comment
Closed

Add shebang support to diagrams #365

ssbarnea opened this issue Jun 21, 2016 · 1 comment

Comments

@ssbarnea
Copy link

By adding a shebang line to the first line of the diagrams we should be able to build them by executing them.

#!/usr/bin/env mermad

The are lots of tools that allow this use case, the trick is that mermaid should be able to parse the stdout, nothing else.

Currently it seems that the PNG files are generated if you do this but they contain an image of the source code instead of the diagram? Quite a strange behaviour.

@tylerlong
Copy link
Collaborator

What is mermad?

The latest tool to process mermaid code is https://github.com/mermaidjs/mermaid.cli

Closing it since it's not a common requirement.

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

2 participants