Skip to content

[Bug]: cannot search for contents inside MDX componentsΒ #1065

@liblaf

Description

@liblaf

Version

System:
    OS: Linux 6.8 Arch Linux
    CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13900HX
    Memory: 55.64 GB / 62.60 GB
    Container: Yes
    Shell: 3.7.1 - /usr/bin/fish
  npmPackages:
    rspress: ^1.0.0 => 1.20.0

Details

// Hello.tsx
export default function Hello({ name }: { name: string }): JSX.Element {
  return <div> {`Hello, ${name}!`} </div>;
}
// hello.mdx
import Hello from "../src/components/Hello.tsx";
<Hello name="Foo" />

There are no results when searching for "Foo".

Reproduce link

https://codesandbox.io/p/devbox/broken-bush-c6vt3k

Reproduce Steps

...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions