Fix for when the br tag is used

This commit is contained in:
ileler
2020-12-10 16:42:37 +08:00
parent 7cc2daa696
commit a855f4bc67

3
src/mermaidAPI.js Normal file → Executable file
View File

@@ -430,6 +430,9 @@ const render = function(id, _txt, cb, container) {
svgCode = decodeEntities(svgCode);
// Fix for when the br tag is used
svgCode = svgCode.replaceAll('<br>', '<br/>');
if (typeof cb !== 'undefined') {
switch (graphType) {
case 'flowchart':