Skip to content

Search display broken due to code marks and other elements #3267

@khalidabuhakmeh

Description

@khalidabuhakmeh

What version of starlight are you using?

0.34.4

What version of astro are you using?

5.10.1

What package manager are you using?

npm

What operating system are you using?

Mac

What browser are you using?

Firefox (Zen Browser)

Describe the Bug

Search results for elements found in code blocks or <mark> elements seem to break the display output of the search results. See below.

Image

The documentation is publicly available. You can run the build and preview actions and then search for w.

Link to Minimal Reproducible Example

https://github.com/DuendeSoftware/docs.duendesoftware.com/

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions