1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-12 22:57:38 +02:00

Clipper: Set source URL and fixed issues with tables and urls

This commit is contained in:
Laurent Cozic
2018-05-24 12:44:13 +01:00
parent a8da469523
commit f79d7b9626
8 changed files with 33 additions and 9 deletions

View File

@ -37,7 +37,7 @@ class ClipperServer {
body: requestNote.body ? requestNote.body : '',
};
if (requestNote.bodyHtml) {
if (requestNote.bodyHtml) {
// Parsing will not work if the HTML is not wrapped in a top level tag, which is not guaranteed
// when getting the content from elsewhere. So here wrap it - it won't change anything to the final
// rendering but it makes sure everything will be parsed.
@ -54,6 +54,8 @@ class ClipperServer {
output.parent_id = folder.id;
}
if (requestNote.url) output.source_url = requestNote.url;
return output;
}