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]: Image resources in mdx cannot be processed when img is wrapped by div #1146

Open
9aoy opened this issue Jun 4, 2024 · 1 comment
Open
Labels
🐞 bug Something isn't working 👏 PR welcome

Comments

@9aoy
Copy link
Contributor

9aoy commented Jun 4, 2024

Version

System:
    OS: macOS 12.5.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 193.67 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Browsers:
    Chrome: 125.0.6422.141
    Safari: 15.6.1
  npmPackages:
    @rspress/plugin-rss: 1.22.0 => 1.22.0 
    rspress: 1.22.0 => 1.22.0

Details

Add the following code to the mdx file:

<div>
  <img src="./assets/icon.png" />
</div>

expect

image

actual

image

Reproduce link

none

Reproduce Steps

none

@Timeless0911
Copy link
Collaborator

It's a mdx-rs issue, see web-infra-dev/mdx-rs#47 (comment)

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