rspress icon indicating copy to clipboard operation
rspress copied to clipboard

[Feature]: Modify the logic of `flattenMdxContent` to support `replaceRules`

Open shulaoda opened this issue 9 months ago • 1 comments

          `FlattenMdxContent` can cause the unfolded MDX content to not apply `replaceRules`. To solve this problem, I think `replaceRules` should be applied to each MDX content flatten in the `flattenMdxContent`.

Originally posted by @shulaoda in https://github.com/web-infra-dev/rspress/pull/1050#discussion_r1595332439

shulaoda avatar May 09 '24 17:05 shulaoda

There is another issue about flattenMdxContent, fully refactoring need to be done to solve these issues together.

https://github.com/web-infra-dev/rspress/issues/1071

SoonIter avatar May 13 '24 05:05 SoonIter