Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liblaf opened this issue May 8, 2024 · 2 comments
Open

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

liblaf opened this issue May 8, 2024 · 2 comments
Labels
🐞 bug Something isn't working 👏 PR welcome

Comments

@liblaf
Copy link

liblaf commented May 8, 2024

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

...

@liblaf liblaf added the 🐞 bug Something isn't working label May 8, 2024
@liblaf
Copy link
Author

liblaf commented May 8, 2024

Maybe related to #936, #942

@Timeless0911
Copy link
Collaborator

Yes, the search of code block is not supported now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 👏 PR welcome
Projects
None yet
Development

No branches or pull requests

2 participants