mermaid layout improvements

This commit is contained in:
zadam
2021-09-30 10:18:03 +02:00
parent f4dde84f06
commit af3fd61974
7 changed files with 23 additions and 10 deletions

View File

@@ -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);
}