Describe the bug
Numerous font-awesome icons fail to render in Mermaid diagrams. Initially it looked like the issue was affecting all icons containing multiple - characters - however, I've just found that fa:fa-battery-full is working, so no longer sure what is causing this.
To Reproduce
Create a mermaid diagram using the following code:
graph TD
subgraph Working Icons
a[fa:fa-user]
b[fa:fa-users]
c[fa:fa-database]
d[fa:fa-lock]
e[fa:fa-table]
f[fa:fa-comments]
g[fa:fa-battery-full]
end
subgraph Broken Icons
h[fa:fa-chart-line]
i[fa:fa-chart-pie]
j[fa:fa-chart-bar]
k[fa:fa-luggage-cart]
end
Expected behavior
All icons in the code sample should render with their corresponding fa-icon (assuming the icon is in the free font awesome library, not Pro).
Describe the bug Numerous font-awesome icons fail to render in Mermaid diagrams. Initially it looked like the issue was affecting all icons containing multiple
-
characters - however, I've just found thatfa:fa-battery-full
is working, so no longer sure what is causing this.To Reproduce Create a mermaid diagram using the following code:
Expected behavior All icons in the code sample should render with their corresponding
fa-icon
(assuming the icon is in the free font awesome library, not Pro).This is working in the Mermaid Live Preview, but not in the Markdown Preview Enhanced extension.
Screenshots![image](https://user-images.githubusercontent.com/389668/124913926-a2ff1e80-dfe7-11eb-8952-4977a952209a.png)
Version Information