8000 Search: code indentation lost in search index · Issue #6104 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Search: code indentation lost in search index #6104

@iBug

Description

@iBug

Context

No response

Bug description

If a code block is contained in an admonition, when this code block comes up in the search result, any indentation is lost.

Related links

Reproduction

9.4.2-test.zip

Steps to reproduce

The easier way: Searching for slugify in the official documentation, and look for this result:

image

The (entirely unnecessarily) more complex way: Using the supplied ZIP, search for test and see how the two results differ. index.md is unaffected while test.md is broken (in the search results).

Browser

Browser-agnostic

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

      0