From f2247ff80ec7ba23dbe3912d7a83d211ebfc3bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Perceval=20Wajsb=C3=BCrt?= Date: Fri, 8 Nov 2024 23:39:39 +0100 Subject: [PATCH] docs: fix relative links --- docs/scripts/clickable_snippets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/scripts/clickable_snippets.py b/docs/scripts/clickable_snippets.py index 9c45db27d..9f821078f 100644 --- a/docs/scripts/clickable_snippets.py +++ b/docs/scripts/clickable_snippets.py @@ -127,7 +127,6 @@ def replace_link(match): output = regex.sub(PIPE_REGEX, replace_component, output) output = regex.sub(HTML_PIPE_REGEX, replace_component, output) - output = regex.sub(HREF_REGEX, replace_link, output) all_snippets = "" all_offsets = [] @@ -187,6 +186,8 @@ def replace_link(match): for soup, start, end in reversed(soups): output = output[:start] + str(soup) + output[end:] + output = regex.sub(HREF_REGEX, replace_link, output) + return output @classmethod