Skip to content

Instant previews: default configuration adds previews for all pages #7052

@jonaharagon

Description

@jonaharagon

Context

I'll open a separate bug for you regarding #7051 (comment) if this makes it easier to track of.

Bug description

Enabling the material.extensions.preview extension makes mkdocs show instant previews on all internal links. I assume it is treating targets as all pages by default, instead of no pages.

markdown_extensions:
  - material.extensions.preview:

Related links

Reproduction

9.5.18+insiders.4.53.6-preview-on-all-links.zip

Steps to reproduce

  1. Enable material.extensions.preview without any options.
  2. Add internal link to a page without setting the data-preview attribute on it.
  3. That link gets the instant preview treatment anyways.

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions