mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
add parameter to specify the height of the diagram, fixing #2335
This commit is contained in:
@@ -28,6 +28,7 @@ function render (element, content, theme) {
|
||||
})
|
||||
mermaidAPI.render(getId(), content, (svgGraph) => {
|
||||
element.innerHTML = svgGraph
|
||||
element.style.height = element.attributes.getNamedItem('data-height').value + 'vh'
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
||||
Reference in New Issue
Block a user