Skip to content

Commit 1465f3b

Browse files
tvdboompawamoy
authored andcommitted
only a... again
1 parent a1ba3e2 commit 1465f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mkdocs_autorefs/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def on_page_content(self, html: str, page: Page, **kwargs: Any) -> str: # noqa:
180180

181181
if self.config["scan_html_tags"]:
182182
# Matches any html anchors with the id property (e.g. <a id="xx">)
183-
for match in re.findall(r"""<.*?id=["']([_\w-]*)["'].*?>""", html):
183+
for match in re.findall(r"""<a .*?id=["']([_\w-]*)["'].*?>""", html):
184184
self.register_anchor(page.url, match)
185185

186186
return html

0 commit comments

Comments
 (0)