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

Clickable nodes in HTML output #57

Open
wkc1986 opened this issue Sep 28, 2020 · 2 comments
Open

Clickable nodes in HTML output #57

wkc1986 opened this issue Sep 28, 2020 · 2 comments

Comments

@wkc1986
Copy link

wkc1986 commented Sep 28, 2020

Using the example from the documentation:

~~~ {.mermaid}
graph LR;
        A-->B;
        click B "http://www.github.com" "This is a link"
~~~

and the compilation command:

pandoc -s -o test-mermaidFilter-node-links.html -F mermaid-filter test-mermaidFilter-node-links.md

it creates the expected graph, but the nodes can't be clicked. Clicking works for PDF output. Is this implemented for HTML?

@raghur
Copy link
Owner

raghur commented Sep 29, 2020

I doubt it... looks like you're using default PNG output? Clickable image would require an image map... right now, the save just uses puppeteer to save the on screen contents as an image. Try with svg output since it allows for links.

@wkc1986
Copy link
Author

wkc1986 commented Sep 29, 2020

Yeah, not clickable with format=svg either.

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