mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
add parameter to specify the height of the diagram, fixing #2335
This commit is contained in:
@@ -44,7 +44,7 @@ class Markdown {
|
||||
return `<pre class="chart">${str}</pre>`
|
||||
}
|
||||
if (langType === 'mermaid') {
|
||||
return `<pre class="mermaid">${str}</pre>`
|
||||
return `<pre class="mermaid" data-height="${fileName}">${str}</pre>`
|
||||
}
|
||||
return '<pre class="code CodeMirror">' +
|
||||
'<span class="filename">' + fileName + '</span>' +
|
||||
|
||||
Reference in New Issue
Block a user