mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 02:27:05 +02:00
Auto convert <br> to <br/>
This commit is contained in:
@@ -91,7 +91,7 @@ const init = function () {
|
||||
txt = element.innerHTML
|
||||
|
||||
// transforms the html to pure text
|
||||
txt = he.decode(txt).trim()
|
||||
txt = he.decode(txt).trim().replace(/<br>/ig, '<br/>')
|
||||
|
||||
mermaidAPI.render(id, txt, (svgCode, bindFunctions) => {
|
||||
element.innerHTML = svgCode
|
||||
|
Reference in New Issue
Block a user