Skip to content

Commit

Permalink
Use proper note format
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Mar 23, 2024
1 parent feed9d7 commit 4feb818
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/syntax/classDiagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ Square : +getMessages() List~string~
Square : +getDistanceMatrix() List~List~int~~
```

> _note_ `(v<MERMAID_RELEASE_VERSION>+)` classes defined with a generic type (e.g.: ThisClass~~T~~) will have the type information added to the classname to create a unique classID. This means that you can have multiple classes defined with the same name, but different types. For any syntax where you are required to add the **class name** you should now use the same syntax as adding a class to reference this object (e.g.: ThisClass~~T~~), or just add a `-` in between the classname and type so that the parser associates items correctly.
> **Note** > `(v<MERMAID_RELEASE_VERSION>+)` classes defined with a generic type (e.g.: ThisClass\~T\~) will have the type information added to the classname to create a unique classID. This means that you can have multiple classes defined with the same name, but different types. For any syntax where you are required to add the **class name** you should now use the same syntax as adding a class to reference this object (e.g.: ThisClass\~T\~), or just add a `-` in between the classname and type so that the parser associates items correctly.
```mermaid-example
classDiagram
Expand Down
4 changes: 3 additions & 1 deletion packages/mermaid/src/docs/syntax/classDiagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ Square : +getMessages() List~string~
Square : +getDistanceMatrix() List~List~int~~
```

> _note_ `(v<MERMAID_RELEASE_VERSION>+)` classes defined with a generic type (e.g.: ThisClass~T~) will have the type information added to the classname to create a unique classID. This means that you can have multiple classes defined with the same name, but different types. For any syntax where you are required to add the **class name** you should now use the same syntax as adding a class to reference this object (e.g.: ThisClass~T~), or just add a `-` in between the classname and type so that the parser associates items correctly.
```note
`(v<MERMAID_RELEASE_VERSION>+)` classes defined with a generic type (e.g.: ThisClass~T~) will have the type information added to the classname to create a unique classID. This means that you can have multiple classes defined with the same name, but different types. For any syntax where you are required to add the **class name** you should now use the same syntax as adding a class to reference this object (e.g.: ThisClass~T~), or just add a `-` in between the classname and type so that the parser associates items correctly.
```

```mermaid-example
classDiagram
Expand Down

0 comments on commit 4feb818

Please sign in to comment.