mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
- avoid logging to console, the error when the diagram syntax is bad
- fix line numbering of code blocks
This commit is contained in:
@@ -35,7 +35,6 @@ function render (element, content, theme) {
|
||||
element.innerHTML = svgGraph
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
element.className = 'mermaid-error'
|
||||
element.innerHTML = 'mermaid diagram parse error: ' + e.message
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user