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

the diagram type |mindmap| seems to be broken #67

Closed
acivitillo opened this issue Jan 23, 2023 · 5 comments
Closed

the diagram type |mindmap| seems to be broken #67

acivitillo opened this issue Jan 23, 2023 · 5 comments
Labels
bug Something isn't working enhancement New feature or request fixed The issue is fixed mermaid-js This isssue relates to the mermaid javascript library

Comments

@acivitillo
Copy link

The mindmap diagram seems to be broken even when using the latest mermaid js library.

mindmap
  root((start))
    node 1
        node 2
    node 3
        node 4

Gives me this error:

image

The link to the mermaid live editor is here

This is the part of mkdocs that configures this plugin:

plugins:
  - mermaid2:
extra_javascript:
    - https://unpkg.com/mermaid/dist/mermaid.min.js
markdown_extensions:
  - pymdownx.highlight
  - pymdownx.superfences:
      custom_fences:
        - name: mermaid
          class: mermaid
          format: !!python/name:pymdownx.superfences.fence_code_format
@github-actions
Copy link

Thank you for your contribution! This is very appreciated.

@acivitillo acivitillo changed the title the graph mindmap seems to be broken the diagram type |mindmap| seems to be broken Jan 23, 2023
@fralau
Copy link
Owner

fralau commented Jan 23, 2023

Thanks!

Mindmap versions were never tested, so this is a first.

Does a lower or higher version of the library work? (You can specify the library version in the config file)

@fralau fralau added the info needed Further information is requested label Jan 23, 2023
@acivitillo
Copy link
Author

No problem, thanks for answering so quickly and the plugin works really well for the other diagrams.

I tested various versions, the problem shows up in all of them. Should I test other specific versions?

@fralau
Copy link
Owner

fralau commented Jan 24, 2023

Thanks a lot for your tests. To help me in my investigation, could I ask you to test which versions you tested?

@fralau fralau added bug Something isn't working enhancement New feature or request labels Jan 24, 2023
@fralau
Copy link
Owner

fralau commented Apr 29, 2023

Mindmaps should work with versions of the javascript library > 10.

Could you please download new version of mkdocs-mermaid2 from the github and test?

@fralau fralau added fixed The issue is fixed mermaid-js This isssue relates to the mermaid javascript library and removed info needed Further information is requested labels Apr 29, 2023
@fralau fralau closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request fixed The issue is fixed mermaid-js This isssue relates to the mermaid javascript library
Projects
None yet
Development

No branches or pull requests

2 participants