diff --git a/mkdocs_glightbox/plugin.py b/mkdocs_glightbox/plugin.py index 8c36300..48c305a 100644 --- a/mkdocs_glightbox/plugin.py +++ b/mkdocs_glightbox/plugin.py @@ -106,7 +106,7 @@ def on_post_page(self, output, page, config, **kwargs): ): # support compatible with mkdocs-material Instant loading feature js_code += "document$.subscribe(() => { lightbox.reload() });\n" - output = body_regex.sub(f"{js_code}", output) + output = body_regex.sub(f'{js_code}', output) return output