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

Desktop: Fixes #4452: Fixed exporting as HTML or PDF when a plugin is active, and make sure plugin assets are also exported

This commit is contained in:
Laurent Cozic
2021-02-05 21:27:19 +00:00
parent 127a28e9b0
commit bd5e3d363c
7 changed files with 117 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ interface RendererRule {
assets?(theme: any): any;
plugin?: any;
assetPath?: string;
assetPathIsAbsolute?: boolean;
}
interface RendererRules {
@@ -231,6 +232,7 @@ export default class MdToHtml {
this.extraRendererRules_[id] = {
...module,
assetPath,
assetPathIsAbsolute: true,
};
}
@@ -282,6 +284,7 @@ export default class MdToHtml {
files.push(Object.assign({}, asset, {
name: name,
path: assetPath,
pathIsAbsolute: !!rule && !!rule.assetPathIsAbsolute,
mime: mime,
}));
}