feat: create utils func + test cases

This commit is contained in:
jakobskrym
2024-04-01 19:05:35 +02:00
parent 63f9d3e0b4
commit 0051620840
6 changed files with 79 additions and 22 deletions

View File

@@ -1194,6 +1194,20 @@ flowchart TD
B-->E(fak:fa-custom-icon-name) %% custom icon
```
And trying to render it
```mermaid-example
flowchart TD
B["fa:fa-twitter for peace"]
B-->C["fab:fa-truck-bold a custom icon"]
```
```mermaid
flowchart TD
B["fa:fa-twitter for peace"]
B-->C["fab:fa-truck-bold a custom icon"]
```
## Graph declarations with spaces between vertices and link and without semicolon
- In graph declarations, the statements also can now end without a semicolon. After release 0.2.16, ending a graph statement with semicolon is just optional. So the below graph declaration is also valid along with the old declarations of the graph.