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

Class diagrams with links export to syntactically incorrect SVG files #32

Closed
wouterbeek opened this issue Jul 29, 2020 · 2 comments
Closed

Comments

@wouterbeek
Copy link

When a class diagram contains at least one link, the generated SVG contains a syntax error:

XML Parsing Error: prefix not bound to a namespace
Location: FILE
Line Number ROW, Column COLUMN:

Steps to reproduce the behavior:

  1. Store any class diagram with at least one link in a file example.mmd (e.g., the example from the Mermaid website, see below).
  2. Run mmdc -i example.mmd -o example.svg
  3. Open the SVG image in a program that can display SVGs (e.g., Firefox); observe the syntax error.
classDiagram
  class Shape
  link Shape "http://www.github.com" "This is a tooltip for a link"

Expected behavior

SVGs generated with mmdc without errors/warnings to be syntactically valid.

  • OS: Ubuntu
  • Browser: Firefox
  • Version: 8.6.0
@wouterbeek wouterbeek changed the title Error in generate SVG file Class diagrams with links export to syntactically incorrect SVG files Jul 29, 2020
@MindaugasLaganeckas
Copy link
Member

MindaugasLaganeckas commented Jul 30, 2020

@wouterbeek : mermaid-cli is only a thin layer over mermaid library. I suggest to report your issue here https://github.com/mermaid-js/mermaid/issues

@wouterbeek
Copy link
Author

@MindaugasLaganeckas Thanks, I've adding it over at mermaid-js/mermaid#1592.

This was the first diagram that I created :-P

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