From 8038bb819dbaab6f76d67f9ee5dfda668e82784a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 12 Sep 2023 18:29:50 +0100 Subject: [PATCH] Render page content before anything else --- hooks/page-render.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hooks/page-render.py b/hooks/page-render.py index 1c4efdf..70eae7d 100644 --- a/hooks/page-render.py +++ b/hooks/page-render.py @@ -1,3 +1,6 @@ +from mkdocs.plugins import event_priority + +@event_priority(100) def on_page_markdown(markdown, page, config, files): # HACK: Calculate what the `env` should probably look like. By default, `on_env` is called after `on_page_markdown`. env = config.plugins.on_env(config.theme.get_env(), config=config, files=files)