Change preprocessor to apply during on_page_read_source, not on_page_markdown. It uses the mechanism used by default MkDocs pages, but passing it through the Jinja preprocessor before return it to the Page object.
Alas, I am not sure how I can test nav generation in with the test framework. If you can give me a pointer or two, I could validate that the nav contains the interpolated string instead of the template var.
Change preprocessor to apply during
on_page_read_source
, noton_page_markdown
. It uses the mechanism used by default MkDocs pages, but passing it through the Jinja preprocessor before return it to the Page object.Alas, I am not sure how I can test nav generation in with the test framework. If you can give me a pointer or two, I could validate that the nav contains the interpolated string instead of the template var.
Fixes #19