mirror of
https://github.com/laurent22/joplin.git
synced 2025-02-01 19:15:01 +02:00
This commit is contained in:
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…
x
Reference in New Issue
Block a user