Skip to content

Commit

Permalink
only a... again
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdboom authored and pawamoy committed Feb 16, 2024
1 parent a1ba3e2 commit 1465f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkdocs_autorefs/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def on_page_content(self, html: str, page: Page, **kwargs: Any) -> str: # noqa:

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

return html
Expand Down

0 comments on commit 1465f3b

Please sign in to comment.