diff --git a/src/ConfluencePageContentDownloader.php b/src/ConfluencePageContentDownloader.php index 5da8d73..60026b7 100755 --- a/src/ConfluencePageContentDownloader.php +++ b/src/ConfluencePageContentDownloader.php @@ -26,8 +26,6 @@ public function __construct(Content $contentEndpoint, Download $downloadEndpoint public function downloadPageContent(ConfluencePage $page, bool $withAttachments = true): void { - $page = $this->repairPageContent($page); - try { foreach ($this->macroReplacers as $macroReplacer) { if ($macroReplacer instanceof MacroReplacerInterface) { @@ -35,6 +33,8 @@ public function downloadPageContent(ConfluencePage $page, bool $withAttachments } } + $page = $this->repairPageContent($page); + $this->downloadEndpoint->downloadPageContent($page, 'content.html'); if (!$withAttachments) {