mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 13:29:40 +02:00
#1295 for Multi line labels separated with \n
This commit is contained in:
@@ -3,7 +3,7 @@ const createLabel = (vertexText, style) => {
|
||||
svgLabel.setAttribute('style', style.replace('color:', 'fill:'));
|
||||
let rows = [];
|
||||
if (vertexText) {
|
||||
rows = vertexText.split(/\n|<br\s*\/?>/gi);
|
||||
rows = vertexText.split(/\\n|\n|<br\s*\/?>/gi);
|
||||
}
|
||||
|
||||
for (let j = 0; j < rows.length; j++) {
|
||||
|
Reference in New Issue
Block a user