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

View file

@ -1,3 +1,6 @@
from mkdocs.plugins import event_priority
@event_priority(100)
def on_page_markdown(markdown, page, config, files): 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`. # 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) env = config.plugins.on_env(config.theme.get_env(), config=config, files=files)