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
commit 3e042f63e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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':