8000 Image: Light and Dark Mode does not work with Privacy Plugin · Issue #6186 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Image: Light and Dark Mode does not work with Privacy Plugin #6186

@tylernguyen

Description

@tylernguyen

Context

No response

Bug description

Images: Light and Dark Mode does not work with Privacy Plugin.

When using external images, and with the Privacy plugin enabled. The #only-light and #only-dark does not work. Instead, both images will be shown regardless of the current scheme.

Related links

Reproduction

9.4.5+insiders.4.42.1-images-and-privacy-plugin.zip

Steps to reproduce

  1. Enable attr_list and md_in_html under markdown_extensions
  2. Enable privacy under plugins
  3. Enable both default and slate color schemes.
  4. Embed two images with #only-light and #only-dark appends. (The images comes externally of the repo)

With privacy enabled, both images will be shown. Without it, the expected behavior works.

Browser

Firefox

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open🏆 perfectIssue is of outstanding quality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0