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