Closed timvink closed 2 years ago
The current behaviour of mkdocs_macros_plugin is to (silently) replace an unknown jinja2 variable with an empty string.
mkdocs_macros_plugin
For example {{ foobar }} in a markdown document will be replaced by ""
{{ foobar }}
This PR changes that behaviour and leaves the jinja string ({{ foobar }} --> {{ foobar }})
Context is that other plugins might also define custom jinja2 variables. See for example https://github.com/timvink/mkdocs-git-authors-plugin/issues/60
Thanks a lot, this entirely makes sense.
There are a few general questions we need to solve, and there might be more than one update. May I ask you to also open an issue?
The current behaviour of
mkdocs_macros_plugin
is to (silently) replace an unknown jinja2 variable with an empty string.For example
{{ foobar }}
in a markdown document will be replaced by ""This PR changes that behaviour and leaves the jinja string (
{{ foobar }}
-->{{ foobar }}
)Context is that other plugins might also define custom jinja2 variables. See for example https://github.com/timvink/mkdocs-git-authors-plugin/issues/60