1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

changed double quotes to single quotes

This commit is contained in:
William Grant
2018-07-21 19:31:40 +10:00
parent eff56c2514
commit 16c62cd46f

View File

@@ -21,10 +21,10 @@ function getId () {
function render (element, content, theme) { function render (element, content, theme) {
try { try {
let isDarkTheme = theme === "dark" || theme === "solarized-dark" || theme === "monokai" let isDarkTheme = theme === 'dark' || theme === 'solarized-dark' || theme === 'monokai'
mermaidAPI.initialize({ mermaidAPI.initialize({
theme: isDarkTheme ? "dark" : "default", theme: isDarkTheme ? 'dark' : 'default',
themeCSS: isDarkTheme ? darkThemeStyling : "" themeCSS: isDarkTheme ? darkThemeStyling : ''
}) })
mermaidAPI.render(getId(), content, (svgGraph) => { mermaidAPI.render(getId(), content, (svgGraph) => {
element.innerHTML = svgGraph element.innerHTML = svgGraph