mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-31 10:54:15 +01:00 
			
		
		
		
	chore: Update docs
This commit is contained in:
		| @@ -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 | ||||||
| ``` | ``` | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sidharth Vinod
					Sidharth Vinod