Skip to content

Commit bd17588

Browse files
committed
changed links for not accessible pages
1 parent 40d7e28 commit bd17588

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

confluence_markdown_exporter/confluence.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,10 @@ def convert_page_link(self, page_id: int) -> str:
836836
raise ValueError(msg)
837837

838838
page = Page.from_id(page_id)
839+
840+
if page.title == "Page not accessible":
841+
return f"[Page not accessible (ID: {page_id})]"
842+
839843
page_path = self._get_path_for_href(page.export_path, settings.export.page_href)
840844

841845
return f"[{page.title}]({page_path.replace(' ', '%20')})"

0 commit comments

Comments
 (0)