From 1ca3669e2fd0f164e558ce859e995dbed7c03c50 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Tue, 4 Nov 2025 11:15:53 +0100 Subject: [PATCH] Ensures correct image download order Ensures that standard markdown images with remote URLs are processed for download after embeds and before wikilinks. This ensures that remote URLs in the standard markdown format `![](url)` are correctly queued for download. --- src/converters/MarkdownPreprocessor.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/converters/MarkdownPreprocessor.ts b/src/converters/MarkdownPreprocessor.ts index f4312a9..6755ad4 100644 --- a/src/converters/MarkdownPreprocessor.ts +++ b/src/converters/MarkdownPreprocessor.ts @@ -144,6 +144,8 @@ export class MarkdownPreprocessor { result.content = this.embedProcessor.processEmbeds(result.content, result); // Step 5.5: Handle standard markdown images with remote URLs + // Process after embeds (which handle ![[]] syntax) but before wikilinks + // to ensure remote URLs in standard markdown ![](url) format are queued for download result.content = this.processStandardMarkdownImages(result.content, result); // Step 6: Convert wikilinks (after embeds are processed)