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 sequenceDiagram not working? #501

Closed
KGillinder opened this issue Nov 1, 2023 · 2 comments
Closed

mermaid sequenceDiagram not working? #501

KGillinder opened this issue Nov 1, 2023 · 2 comments

Comments

@KGillinder
Copy link

Many of the features of mermaid sequenceDiagrams are not working? or perhaps they aren't supported?

library(DiagrammeR)
mermaid("
sequenceDiagram
    Alice->>Bob: Hello Bob, how are you ?
    Bob->>Alice: Fine, thank you. And you?
    create participant Carl
    Alice->>Carl: Hi Carl!
    create actor D as Donald
    Carl->>D: Hi!
    destroy Carl
    Alice-xCarl: We are too many
    destroy Bob
    Bob->>Alice: I agree
")

However, removing the 'create' and 'destroy' calls works.

Activations do not work. i.e.,

sequenceDiagram
    Alice->>John: Hello John, how are you?
    activate John
    John-->>Alice: Great!
    deactivate John

Additionally, there does not appear to be any way to format colours and fills for the components of the diagram?

@olivroy
Copy link
Collaborator

olivroy commented Nov 8, 2023

Hi! This was fixed in mermaid 8.1.0. mermaid-js/mermaid#647 This would work if DiagrammeR updated its bundled mermaid.js version.

It caused breaking changes when it was first attempted. See #475 for future updates.

Asked on StackOverflow https://stackoverflow.com/questions/77461119/how-to-plot-a-mermaid-figure-using-diagrammer

@rich-iannone
Copy link
Owner

Closing this in favor of #475.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants