Merge pull request #1822 from ileler/develop

Fix for when the br tag is used
This commit is contained in:
Ashish Jain
2020-12-17 20:49:26 +01:00
committed by GitHub

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.replace(/<br>/g, '<br/>');
if (typeof cb !== 'undefined') {
switch (graphType) {
case 'flowchart':