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:
@@ -21,10 +21,10 @@ function getId () {
|
||||
|
||||
function render (element, content, theme) {
|
||||
try {
|
||||
let isDarkTheme = theme === "dark" || theme === "solarized-dark" || theme === "monokai"
|
||||
let isDarkTheme = theme === 'dark' || theme === 'solarized-dark' || theme === 'monokai'
|
||||
mermaidAPI.initialize({
|
||||
theme: isDarkTheme ? "dark" : "default",
|
||||
themeCSS: isDarkTheme ? darkThemeStyling : ""
|
||||
theme: isDarkTheme ? 'dark' : 'default',
|
||||
themeCSS: isDarkTheme ? darkThemeStyling : ''
|
||||
})
|
||||
mermaidAPI.render(getId(), content, (svgGraph) => {
|
||||
element.innerHTML = svgGraph
|
||||
|
||||
Reference in New Issue
Block a user