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

SVG with title? #851

Open
tih2010 opened this issue Feb 5, 2025 · 0 comments
Open

SVG with title? #851

tih2010 opened this issue Feb 5, 2025 · 0 comments

Comments

@tih2010
Copy link

tih2010 commented Feb 5, 2025

Hi!

Thanks for this tool, it works great!

I would like to render SVGs with a title. The live editor (https://mermaid.live) suggests to use as notation with '---' like this:

Image

When I write an .mmd - file using this and try to have it rendered with mermaid-cli, I get errors:

Error: Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks    
Object.parse (C:\Users\Wob\AppData\Roaming\npm\node_modules\@mermaid-js\mermaid-cli\node_modules\mermaid\dist\mermaid.js:146131:19)...

So.. ist there a way to get SVG - images with a title?

Thanks a lot,
Wolfram

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

1 participant