fralau / mkdocs-mermaid2-plugin

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

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

Closed acivitillo closed 1 year ago

acivitillo commented 1 year ago

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[bot] commented 1 year ago

Thank you for your contribution! This is very appreciated.

fralau commented 1 year ago

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)

acivitillo commented 1 year ago

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 commented 1 year ago

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

fralau commented 1 year ago

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

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