Diagrams | Hugo provides a sample sequence diagram example for markdown.
I have a similar sequence diagram captured in a markdown. The difference is that I have encapsulating box for participants. This causes an error in rendering the sequence diagram. To ensure syntactic correctness, I am able to render it in VSCode.
Sample code -
```mermaid
sequenceDiagram
box rgb(255, 244, 255) Setup
participant ps as Server
participant pc as Controller
end
box LightYellow Target
participant ss as Setup Service
end
autonumber
Note over ps,ss: Phase1 :: Procure Credentials
pc->>ss: Test request
ss->>pc: Response :: Test Response
```
vsCode renders well.