Update packages/mermaid/src/docs/syntax/flowchart.md

Co-authored-by: Sidharth Vinod <sidharthv96@gmail.com>
This commit is contained in:
arukiidou
2024-01-19 08:49:12 +09:00
committed by Sidharth Vinod
parent 04ebf0ddc9
commit be8faae68c

View File

@@ -776,18 +776,17 @@ flowchart TD
B-->E(A fa:fa-camera-retro perhaps?)
```
Mermaid is compatible with Font Awesome up to version 5, Free icons only. Check that the icons you use are from the [supported set of icons](https://fontawesome.com/v5/search?o=r&m=free).
Mermaid supports Font Awesome if the CSS is included on the website.
Mermaid does not have any restriction on the version of Font Awesome that can be used.
You can use this method to add mermaid including the fontawesome icon to a web page:
Please refer the [Official Font Awesome Documentation](https://fontawesome.com/start) on how to include it in your website.
Adding this snippet in the `<head>` would add support for Font Awesome v6.5.1
```html
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
rel="stylesheet"
/>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
</script>
```
## Graph declarations with spaces between vertices and link and without semicolon