Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Commits on Feb 1, 2024

  1. For jinja autoescape, mark HTML strings as safe, not needing escaping

    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 committed Feb 1, 2024
    Configuration menu
    Copy the full SHA
    77bff0c View commit details
    Browse the repository at this point in the history