fralau / mkdocs-mermaid2-plugin

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

sequenceDiagram brokens #76

Closed komaroffdd closed 12 months ago

komaroffdd commented 1 year ago

Hello i have next diagrams :

sequenceDiagram
    actor user as manager
    participant api as professions
    participant db as database

    user ->> api: api
    api ->> db: db
    db -->> api: echo
    api -->> user: resp 

i try use this plugins and i get errors:

image
my config : 
site_name: api-docs
nav:
  - Home: 'service/main.md'
  - arch: 'service/architecture/arch.md'
  - scheme: 'service/scheme/scheme.md'
  - api: 'service/sequences/main.md'
plugins:
  - mermaid2
github-actions[bot] commented 1 year ago

Thank you for your contribution! This is very appreciated.

fralau commented 1 year ago

Could your diagram be incompatible with Mermaid library 8.8.0?

Try to use the latest version on github (which uses the Mermaid library > 10.0)?

komaroffdd commented 1 year ago

Hello, thanks for fast answer!

if I understand you correctly then i use Mermaid 10 in this comment :)

this is screen

image image
fralau commented 1 year ago

It's possible.

Did you also try with a very simple diagram, first? (To check that your config is OK?).

Then download the latest version of mkdocs-mermaid2 from github (not pypi) and install.

Let me know.

fralau commented 1 year ago

@komaroffdd What is the status of this issue?