rspress icon indicating copy to clipboard operation
rspress copied to clipboard

[Bug]: Image resources in mdx cannot be processed when img is wrapped by div

Open 9aoy opened this issue 1 year ago • 1 comments

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

9aoy avatar Jun 04 '24 09:06 9aoy

It's a mdx-rs issue, see https://github.com/web-infra-dev/mdx-rs/issues/47#issue-2333062549

Timeless0911 avatar Jun 04 '24 09:06 Timeless0911