1
Fork 0

Render page content before anything else

This commit is contained in:
Jake Howard 2023-09-12 18:29:50 +01:00
parent e393c7c5c1
commit 8038bb819d
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 3 additions and 0 deletions

View File

@ -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)