mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 16:26:31 +01:00
mermaid layout improvements
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user