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

@@ -50,7 +50,7 @@ function deriveMime(type, mime) {
if (type === 'text') {
mime = 'text/html';
} else if (type === 'code') {
} else if (type === 'code' || type === 'mermaid') {
mime = 'text/plain';
} else if (['relation-map', 'search'].includes(type)) {
mime = 'application/json';
@@ -115,6 +115,8 @@ function createNewNote(params) {
mime: deriveMime(params.type, params.mime)
}).save();
console.log(params);
note.setContent(params.content);
const branch = new Branch({