web-infra-dev / rspress

🦀💨 A fast Rspack-based static site generator.
https://rspress.dev
MIT License
1.19k stars 107 forks source link

[Bug]: Mdx Custom Container text displayed incorrectly #1208

Open wxiaoyun opened 3 days ago

wxiaoyun commented 3 days ago

Version

System:
    OS: Linux 6.9 Arch Linux
    CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
    Memory: 21.87 GB / 31.25 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  npmPackages:
    rspress: ^1.25.0 => 1.25.1

Details

Description

Expected

TIP

This optimization currently has the potential to significantly impact performance.
If you are encountering performance issue, and you are using `optimization.splitChunks`, also have set `optimization.splitChunks.chunks` to 'all', you can disable `optimization.mergeDuplicateChunks`.

Actual

TIP

This optimization currently has the potential to significantly impact performance.optimization.splitChunks, also have set optimization.splitChunks.chunks to 'all', you can disable optimization.mergeDuplicateChunks.

If you are encountering performance issue, and you are using 

Related issues

Screenshots

image

Reproduce link

https://github.com/wxiaoyun/rspress-mdx-container-bug-reproduction

Reproduce Steps

  1. bun i
  2. bun dev
  3. go to http://localhost:3000/config/optimization#optimizationmergeduplicatechunks
Timeless0911 commented 3 days ago

Oh, I think it is an issue related to mdx-rs, see https://github.com/web-infra-dev/mdx-rs/issues/48

You can just add a \n like to fix this issue temporarily. image

wxiaoyun commented 3 days ago

Oh, I think it is an issue related to mdx-rs, see web-infra-dev/mdx-rs#48

You can just add a \n like to fix this issue temporarily. image

Got it, thanks a lot