chore: Update docs

This commit is contained in:
Sidharth Vinod 2024-06-20 22:15:52 +05:30
parent 82b120e567
commit d65e78f9e2
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -304,17 +304,35 @@ sequenceDiagram
Note over Alice,John: A typical interaction Note over Alice,John: A typical interaction
``` ```
It is also possible to add a line break (applies to text input in general): ## Line breaks
Line break can be added to Note and Message:
```mermaid-example ```mermaid-example
sequenceDiagram sequenceDiagram
Alice->John: Hello John, how are you? Alice->John: Hello John,<br/>how are you?
Note over Alice,John: A typical interaction<br/>But now in two lines Note over Alice,John: A typical interaction<br/>But now in two lines
``` ```
```mermaid ```mermaid
sequenceDiagram sequenceDiagram
Alice->John: Hello John, how are you? Alice->John: Hello John,<br/>how are you?
Note over Alice,John: A typical interaction<br/>But now in two lines
```
Line breaks in Actor names requires aliases:
```mermaid-example
sequenceDiagram
participant Alice as Alice<br/>Johnson
Alice->John: Hello John,<br/>how are you?
Note over Alice,John: A typical interaction<br/>But now in two lines
```
```mermaid
sequenceDiagram
participant Alice as Alice<br/>Johnson
Alice->John: Hello John,<br/>how are you?
Note over Alice,John: A typical interaction<br/>But now in two lines Note over Alice,John: A typical interaction<br/>But now in two lines
``` ```