Skip to content

Commit 7e29c39

Browse files
authored
Merge pull request #4 from artemeon/fix/convert-confluence-tags-before-html-validation
fix html validation
2 parents 924971b + aab24bd commit 7e29c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ConfluencePageContentDownloader.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ public function __construct(Content $contentEndpoint, Download $downloadEndpoint
2626

2727
public function downloadPageContent(ConfluencePage $page, bool $withAttachments = true): void
2828
{
29-
$page = $this->repairPageContent($page);
30-
3129
try {
3230
foreach ($this->macroReplacers as $macroReplacer) {
3331
if ($macroReplacer instanceof MacroReplacerInterface) {
3432
$page->setContent($macroReplacer->replace($page->getContent()));
3533
}
3634
}
3735

36+
$page = $this->repairPageContent($page);
37+
3838
$this->downloadEndpoint->downloadPageContent($page, 'content.html');
3939

4040
if (!$withAttachments) {

0 commit comments

Comments
 (0)