You've already forked joplin
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:
@@ -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,
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user