(It is the create/destroy stuff that is breaking things. If I drop it, it renders. It is allegedly legal though!)
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
but the extensions says:
I am using the latest release version of the extension as of writing (v1.21.0) and this is my VSCode about info, if it helps:
Curiously, Github's own Mermaid rendering also struggles to render it if I put the "mermaid" indicator in the triple ticks: 🤔
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
If we drop the create/destroy bits, it renders in both GitHub and the extension:
sequenceDiagram
Alice->>Bob: Hello Bob, how are you ?
Bob->>Alice: Fine, thank you. And you?
Alice->>Carl: Hi Carl!
Carl->>D: Hi!
Alice-xCarl: We are too many
Bob->>Alice: I agree
This diagram below works in https://mermaid.live but not with the extension.
It is lifted from the docs: https://mermaid.js.org/syntax/sequenceDiagram.html#actor-creation-and-destruction-v10-3-0
(It is the create/destroy stuff that is breaking things. If I drop it, it renders. It is allegedly legal though!)
but the extensions says:
I am using the latest release version of the extension as of writing (
v1.21.0
) and this is my VSCode about info, if it helps:Curiously, Github's own Mermaid rendering also struggles to render it if I put the "mermaid" indicator in the triple ticks: 🤔
If we drop the create/destroy bits, it renders in both GitHub and the extension: