mirror of https://github.com/laurent22/joplin.git
pull/7869/head
parent
4bee6ffc90
commit
ad4d71dbe1
|
@ -74,6 +74,10 @@ export default class InteropService_Exporter_Html extends InteropService_Exporte
|
|||
|
||||
for (let i = 0; i < linkedResourceIds.length; i++) {
|
||||
const id = linkedResourceIds[i];
|
||||
// Skip the resources which haven't been downloaded yet
|
||||
if (!resourcePaths[id]) {
|
||||
continue;
|
||||
}
|
||||
const resourceContent = `${relativePath ? `${relativePath}/` : ''}_resources/${basename(resourcePaths[id])}`;
|
||||
newBody = newBody.replace(new RegExp(`:/${id}`, 'g'), resourceContent);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue