Skip to content

Commit

Permalink
fix(obsidian/template): fix image not imported during note import
Browse files Browse the repository at this point in the history
close #190, close #187
  • Loading branch information
aidenlx committed Sep 30, 2023
1 parent 577dd22 commit ddecb84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/obsidian/src/services/template/render.ts
Expand Up @@ -128,7 +128,9 @@ export class TemplateRenderer extends Service {
private render(target: string, obj: any): string;
private render(target: string, obj: any): string {
try {
return this.eta.render(target, obj);
const markdown = this.eta.render(target, obj);
this.plugin.imgCacheImporter.flush();
return markdown;
} catch (error) {
console.error(
"Error while rendering",
Expand Down

0 comments on commit ddecb84

Please sign in to comment.