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

Mermaid JS invisible link in flowchart not working #5501

Closed
4 tasks done
robinbaeurle opened this issue May 10, 2023 · 2 comments
Closed
4 tasks done

Mermaid JS invisible link in flowchart not working #5501

robinbaeurle opened this issue May 10, 2023 · 2 comments
Labels
bug Issue reports a bug not fixable Issue concerns an unfixable bug

Comments

@robinbaeurle
Copy link

robinbaeurle commented May 10, 2023

Context

No response

Bug description

Hi,

In the docs, it says that all mermaid diagrams are supported.

When I try the following code on a page

```mermaid
flowchart LR
    A ~~~ B
    ```

It gives a syntax error and cannot render the diagram.

However, when I enter the same in the mermaid online editor, everything works fine.

Is the invisible link in state diagrams not supported somehow?

Thanks
Robin

Related links

Reproduction

This is a really minimal issue. Please see reproduction steps. Works in any project.

Steps to reproduce

  1. Try to render a flowchart diagram with mermaid using syntax A ~~~ B.
  2. Syntax error occurs.

Browser

No response

Before submitting

@squidfunk squidfunk added the needs investigation Issue must be investigated by the maintainers label May 12, 2023
@squidfunk
Copy link
Owner

Thanks for reporting. The feature you're asking about seems to have been added in Mermaid 10. We can currently only support Mermaid 9 (see #5193 (comment)), so you would need to add Mermaid 10 via theme extension yourself.

We'll reinvestigate this in the near future. As mentioned, see the comment for details.

@squidfunk squidfunk added bug Issue reports a bug not fixable Issue concerns an unfixable bug and removed needs investigation Issue must be investigated by the maintainers labels May 12, 2023
@clementcontet
Copy link

Hi, for some reason, it seems that invisible links were introduced in mermaid 9.2, removed in 9.3 and re-introduced in 10! (mermaid-js/mermaid#2805 (comment))
So if you use mermaid 9.2 (supported by mkdocs-material), invisible links work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug not fixable Issue concerns an unfixable bug
Projects
None yet
Development

No branches or pull requests

3 participants