raghur/mermaid-filter

Clickable nodes in HTML output

wkc1986 opened this issue · 2 comments

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?

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.

Yeah, not clickable with format=svg either.