1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Support importing JEX and raw data

This commit is contained in:
Laurent Cozic
2018-02-25 17:01:16 +00:00
parent 39ddd934f6
commit 8f2e5faff3
8 changed files with 431 additions and 7 deletions

View File

@ -80,8 +80,12 @@ function shimInit() {
await Resource.save(resource, { isNew: true });
const newBody = [];
if (note.body) newBody.push(note.body);
newBody.push(Resource.markdownTag(resource));
const newNote = Object.assign({}, note, {
body: note.body + "\n\n" + Resource.markdownTag(resource),
body: newBody.join('\n\n'),
});
return await Note.save(newNote);
}