From 8712af9b01b8911cda5bf1253ae1059fddc6a4e6 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 19 Mar 2026 13:00:30 +0100 Subject: [PATCH] Fix header permalinks conflict with markdown links attributes --- scripts/doc_parsing_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/doc_parsing_utils.py b/scripts/doc_parsing_utils.py index 1cd2299e66..88ff2c50bd 100644 --- a/scripts/doc_parsing_utils.py +++ b/scripts/doc_parsing_utils.py @@ -17,7 +17,7 @@ MARKDOWN_LINK_RE = re.compile( r"(?P[^)\s]+)" # url (no spaces and `)`) r'(?:\s+["\'](?P.*?)["\'])?' # optional title in "" or '' r"\)" - r"(?:\s*\{(?P<attrs>[^}]*)\})?" # optional attributes in {} + r"(?:\{(?P<attrs>[^}]*)\})?" # optional attributes in {} ) HTML_LINK_RE = re.compile(r"<a\s+[^>]*>.*?</a>")