Skip to content

Commit 8712af9

Browse files
committed
Fix header permalinks conflict with markdown links attributes
1 parent fa63a15 commit 8712af9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/doc_parsing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
r"(?P<url>[^)\s]+)" # url (no spaces and `)`)
1818
r'(?:\s+["\'](?P<title>.*?)["\'])?' # optional title in "" or ''
1919
r"\)"
20-
r"(?:\s*\{(?P<attrs>[^}]*)\})?" # optional attributes in {}
20+
r"(?:\{(?P<attrs>[^}]*)\})?" # optional attributes in {}
2121
)
2222

2323
HTML_LINK_RE = re.compile(r"<a\s+[^>]*>.*?</a>")

0 commit comments

Comments
 (0)