#1724 Adding fontawesome to edge labels

This commit is contained in:
Knut Sveidqvist
2020-10-15 19:29:37 +02:00
parent 4ae61ad35a
commit d8da24804f
4 changed files with 32 additions and 11 deletions

View File

@@ -787,5 +787,14 @@ describe('Flowchart', () => {
{htmlLabels: true, flowchart: {htmlLabels: true}, securityLevel: 'loose'}
);
});
it('61: fontawesome icons in edge labels', () => {
imgSnapshotTest(
`
graph TD
C -->|fa:fa-car Car| F[fa:fa-car Car]
`,
{htmlLabels: true, flowchart: {htmlLabels: true}, securityLevel: 'loose'}
);
});
});