mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-10 02:49:40 +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);
|
svgCode = decodeEntities(svgCode);
|
||||||
|
|
||||||
|
// Fix for when the br tag is used
|
||||||
|
svgCode = svgCode.replace(/<br>/g, '<br/>');
|
||||||
|
|
||||||
if (typeof cb !== 'undefined') {
|
if (typeof cb !== 'undefined') {
|
||||||
switch (graphType) {
|
switch (graphType) {
|
||||||
case 'flowchart':
|
case 'flowchart':
|
||||||
|
Reference in New Issue
Block a user