1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

mermaid diagram rendering for dark themes is now fixed

This commit is contained in:
William Grant
2018-07-21 19:20:20 +10:00
parent 6cad2ab4df
commit eff56c2514
2 changed files with 13 additions and 2 deletions

View File

@@ -556,7 +556,7 @@ export default class MarkdownPreview extends React.Component {
_.forEach(
this.refs.root.contentWindow.document.querySelectorAll('.mermaid'),
(el) => {
mermaidRender(el, htmlTextHelper.decodeEntities(el.innerHTML))
mermaidRender(el, htmlTextHelper.decodeEntities(el.innerHTML), theme)
}
)
}