mirror of
https://github.com/zadam/trilium.git
synced 2025-11-18 11:10:41 +01:00
mermaid layout improvements
This commit is contained in:
@@ -168,7 +168,7 @@ const STRING_MIME_TYPES = [
|
||||
|
||||
function isStringNote(type, mime) {
|
||||
// render and book are string note in the sense that they are expected to contain empty string
|
||||
return ["text", "code", "relation-map", "search", "render", "book"].includes(type)
|
||||
return ["text", "code", "relation-map", "search", "render", "book", "mermaid"].includes(type)
|
||||
|| mime.startsWith('text/')
|
||||
|| STRING_MIME_TYPES.includes(mime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user