diff --git a/src/mkdocs_autorefs/plugin.py b/src/mkdocs_autorefs/plugin.py index 1f4f8a0..ba333e8 100644 --- a/src/mkdocs_autorefs/plugin.py +++ b/src/mkdocs_autorefs/plugin.py @@ -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. ) - for match in re.findall(r"""<.*?id=["']([_\w-]*)["'].*?>""", html): + for match in re.findall(r"""""", html): self.register_anchor(page.url, match) return html