fralau / mkdocs-mermaid2-plugin

A Mermaid graphs plugin for mkdocs
https://mkdocs-mermaid2.readthedocs.io
MIT License
203 stars 25 forks source link

Links not working #69

Closed garrywilliams closed 10 months ago

garrywilliams commented 1 year ago

Great plugin! Please can you help me enable links in my charts.

I am using your example graph below but the link isn't working on my site. I have the following configuration and everything else is working fine.

plugins:
  - search
  - mkdocstrings
  - autorefs
  - mermaid2:
      arguments:
        theme: default
        securityLevel: 'loose'

The graph is:

graph LR
    hello --> world
    world --> mermaid[mermaid web site]
    click mermaid "https://mermaid-js.github.io/mermaid" "Website"

I have followed these instructions:

Adding Hyperlinks to a Diagram (versions of Mermaid javascript >~ 8.5.0) To enable this function, you need to relax mermaid's security level to 'loose'.

Use the click directive in the language (for more information, see Interaction on the official mermaid website)

github-actions[bot] commented 1 year ago

Thank you for your contribution! This is very appreciated.

fralau commented 1 year ago

Interesting question. Could you show what the generated HTML/javavscript of your page looks like? (so that we can debug?)

fralau commented 1 year ago

@garrywilliams What is the status of this issue?

garrywilliams commented 1 year ago

Sorry, @fralau, I missed your question. I'll find the pages and get back to you this week.

fralau commented 11 months ago

@garrywilliams Thanks. Where you able to check?