mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-24 22:54:14 +01:00
Fix mermaid code formatting in html
This commit is contained in:
@@ -109,7 +109,7 @@
|
||||
return '<pre id="code' + currentCodeExample + '">' + escapeHTML(code) + '</pre>';
|
||||
} else if (lang === 'mermaid') {
|
||||
return (
|
||||
'<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + '</div>'
|
||||
'<pre class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + '</pre>'
|
||||
);
|
||||
}
|
||||
return this.origin.code.apply(this, arguments);
|
||||
|
||||
Reference in New Issue
Block a user