mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Auto convert <br> to <br/>
This commit is contained in:
parent
594847ba04
commit
a8e49a0d2d
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mermaid",
|
||||
"version": "8.0.0-alpha.7",
|
||||
"version": "8.0.0-alpha.8",
|
||||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
|
||||
"main": "dist/mermaid.core.js",
|
||||
"keywords": [
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user