mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-10 10:59:51 +02:00
Rebuilding docs
This commit is contained in:
@@ -604,10 +604,42 @@ You would define these actions on a separate line after all classes have been de
|
|||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
It is possible to add notes on diagram using `note "line1\nline2"` or note for class using `note for class "line1\nline2"`
|
It is possible to add notes on the diagram using `note "line1\nline2"`. A note can be added for a specific class using `note for <CLASS NAME> "line1\nline2"`.
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
|
```mermaid-example
|
||||||
|
classDiagram
|
||||||
|
note "This is a general note"
|
||||||
|
note for MyClass "This is a note for a class"
|
||||||
|
class MyClass{
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
classDiagram
|
||||||
|
note "This is a general note"
|
||||||
|
note for MyClass "This is a note for a class"
|
||||||
|
class MyClass{
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```mermaid-example
|
||||||
|
classDiagram
|
||||||
|
note "This is a general note"
|
||||||
|
note for MyClass "This is a note for a class"
|
||||||
|
class MyClass{
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
classDiagram
|
||||||
|
note "This is a general note"
|
||||||
|
note for MyClass "This is a note for a class"
|
||||||
|
class MyClass{
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
_URL Link:_
|
_URL Link:_
|
||||||
|
|
||||||
```mermaid-example
|
```mermaid-example
|
||||||
|
Reference in New Issue
Block a user