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

Reland: For jinja autoescape, mark HTML strings as safe, not needing escaping #128

Closed oprypin closed 6 months ago

oprypin commented 6 months ago

(The previous version of this change had a mistake that was inserting Markup in the wrong place.)


Original description:

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, 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 6 months ago

Will not be necessary, not moving forward with this change in mkdocs for the near future.

timvink commented 6 months ago

Just wanted to say I really appreciate you pushing the mkdocs ecosystem forward, and even taking the effort to contribute downstream to plugins!

From my side, it's not a problem to introduce changes that require plugins to upgrade -- if it means we can move mkdocs forward.

Thanks for all your effort!