mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-07 01:26:42 +02:00
Merge pull request #1822 from ileler/develop
Fix for when the br tag is used
This commit is contained in:
3
src/mermaidAPI.js
Normal file → Executable file
3
src/mermaidAPI.js
Normal file → Executable 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':
|
||||
|
Reference in New Issue
Block a user