From aab24bdc1c298c92a8e48672d82ff1739a345385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20K=C3=BCchler?= Date: Fri, 14 Feb 2025 16:17:58 +0100 Subject: [PATCH] fix convert confluence tags before html validation to prevent html validation to remove confluence syntax which is needed for replacing tags --- src/ConfluencePageContentDownloader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {