timvink / mkdocs-git-revision-date-localized-plugin

MkDocs plugin to add a last updated date to your site pages
https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/index.html
MIT License
193 stars 39 forks source link

For jinja autoescape, mark HTML strings as safe, not needing escaping #126

Closed oprypin closed 7 months ago

oprypin commented 7 months ago

For contexts where Jinja's autoescape is enabled, this is necessary for keeping this string working without it being escaped. (This might become the default behavior in the next version of MkDocs)

If so, without this change, the HTML will be pasted like this into the doc:

<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-date">March 17, 2022</span>

When Jinja's autoescape is not enabled, there's no change in behavior.

oprypin commented 7 months ago
timvink commented 7 months ago

Thanks, will release after the weekend!

timvink commented 6 months ago

Done. Thanks again!

squidfunk commented 6 months ago

The changes in this PR break the native integration with Material for MkDocs, see https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/issues/127