diff --git a/alias/plugin.py b/alias/plugin.py index 2e384ba..f82c947 100644 --- a/alias/plugin.py +++ b/alias/plugin.py @@ -158,7 +158,7 @@ def on_post_build(self, **_): self.log.info("Defined %s alias(es).", len(self.aliases)) self.aliases.clear() - def on_page_markdown(self, markdown: str, *, page: Page, **_): + def on_page_markdown(self, markdown: str, /, *, page: Page, **_): """Replaces any alias tags on the page with markdown links.""" self.current_page = page return re.sub( @@ -173,7 +173,7 @@ def on_page_markdown(self, markdown: str, *, page: Page, **_): markdown ) - def on_files(self, files: Files, **_): + def on_files(self, files: Files, /, **_): """When MkDocs loads its files, extract aliases from any Markdown files that were found. """