mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-05 12:29:54 -06:00
support OPML from MindManager, fixes #1862
This commit is contained in:
@@ -36,6 +36,12 @@ async function importOpml(taskContext, fileBuffer, parentNote) {
|
||||
if (opmlVersion === 1) {
|
||||
title = outline.$.title;
|
||||
content = toHtml(outline.$.text);
|
||||
|
||||
if (!title || !title.trim()) {
|
||||
// https://github.com/zadam/trilium/issues/1862
|
||||
title = outline.$.text;
|
||||
content = '';
|
||||
}
|
||||
}
|
||||
else if (opmlVersion === 2) {
|
||||
title = outline.$.text;
|
||||
|
||||
Reference in New Issue
Block a user