Browse Source

Fix header permalinks conflict with markdown links attributes

pull/15166/head
Yurii Motov 4 months ago
parent
commit
8712af9b01
  1. 2
      scripts/doc_parsing_utils.py

2
scripts/doc_parsing_utils.py

@ -17,7 +17,7 @@ MARKDOWN_LINK_RE = re.compile(
r"(?P<url>[^)\s]+)" # url (no spaces and `)`)
r'(?:\s+["\'](?P<title>.*?)["\'])?' # 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>")

Loading…
Cancel
Save