mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 02:27:05 +02:00
docs: update docs with new info
This commit is contained in:
@@ -1178,6 +1178,16 @@ Adding this snippet in the `<head>` would add support for Font Awesome v6.5.1
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
It is possible to use custom icons served from Font Awesome as long as the website imports the corresponding kit. Note that this is currently a paid feature from Font Awesome.
|
||||||
|
|
||||||
|
For custom icons, you need to use the `fak` prefix.
|
||||||
|
|
||||||
|
```
|
||||||
|
flowchart TD
|
||||||
|
B["fa:fa-twitter for peace"]
|
||||||
|
B-->E(fak:fa-custom-icon-name) %% this will try to find your kit's custom icon
|
||||||
|
```
|
||||||
|
|
||||||
## Graph declarations with spaces between vertices and link and without semicolon
|
## 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.
|
- 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.
|
||||||
|
@@ -799,6 +799,16 @@ Adding this snippet in the `<head>` would add support for Font Awesome v6.5.1
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
It is possible to use custom icons served from Font Awesome as long as the website imports the corresponding kit. Note that this is currently a paid feature from Font Awesome.
|
||||||
|
|
||||||
|
For custom icons, you need to use the `fak` prefix.
|
||||||
|
|
||||||
|
```
|
||||||
|
flowchart TD
|
||||||
|
B["fa:fa-twitter for peace"]
|
||||||
|
B-->E(fak:fa-custom-icon-name) %% this will try to find your kit's custom icon
|
||||||
|
```
|
||||||
|
|
||||||
## Graph declarations with spaces between vertices and link and without semicolon
|
## 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.
|
- 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.
|
||||||
|
Reference in New Issue
Block a user