sharing improvements

This commit is contained in:
zadam
2021-12-23 20:54:48 +01:00
parent 972f2f40bf
commit 47845930f4
4 changed files with 23 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ function getContent(note) {
content = document.body.innerHTML;
}
}
else if (note.type === 'code') {
else if (note.type === 'code' || note.type === 'mermaid') {
if (!content?.trim()) {
content = NO_CONTENT + getChildrenList(note);
}