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

mmdc cannot render graphs that include hyperlinks. #343

Closed
MichaelJFishmanBA opened this issue Aug 4, 2022 · 3 comments
Closed

mmdc cannot render graphs that include hyperlinks. #343

MichaelJFishmanBA opened this issue Aug 4, 2022 · 3 comments

Comments

@MichaelJFishmanBA
Copy link

Describe the bug
mmdc cannot render graphs that use hyperlinks.

To Reproduce
Create a file link.mmd with the code

graph LR
    A[<a href='https://google.com'>google</a>]

run

mmdc -i link.mmd -o link.svg

Open link.svg in chrome, and note that it is broken.

Expected behavior

The svg looks like the graph below with a clickable link (GitHub renders it correctly):

graph LR
    A[<a href='https://google.com'>google</a>]
Loading

Or like the output of mermaid.live

Desktop (please complete the following information):

  • OS: macOS Monterey 12.4
  • Browser Chrome
  • mmdc version: 8.11.0

Additional context
I'm trying to use mmdc as part of a python program to generate graphs with links.

@MindaugasLaganeckas
Copy link
Member

Hey @MichaelJFishmanBA the problem may be a very old mermaid version (8.11.0), that you are using. We have a challenge updating memraid-cli for mac users #288 Maybe you can try to use our docker image? With docker, you should get access to the latest mermaid-cli release.

@MichaelJFishmanBA
Copy link
Author

@MindaugasLaganeckas Using the docker version worked. Thanks!

@MindaugasLaganeckas
Copy link
Member

Fantastic! 😄 We should look into #288 sometime soon 😄

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