mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 19:39:43 +02:00
flowRender.js - Fix fontAwesome icon insert
Missing ending tag </i> in fontAwesome icon inserting.
This commit is contained in:
@@ -79,7 +79,7 @@ exports.addVertices = function (vert, g) {
|
|||||||
if(conf.htmlLabels) {
|
if(conf.htmlLabels) {
|
||||||
labelTypeStr = 'html';
|
labelTypeStr = 'html';
|
||||||
verticeText = verticeText.replace(/fa:fa[\w\-]+/g,function(s){
|
verticeText = verticeText.replace(/fa:fa[\w\-]+/g,function(s){
|
||||||
return '<i class="fa '+ s.substring(3)+'">';
|
return '<i class="fa '+ s.substring(3)+'"></i>';
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user