rspress
rspress copied to clipboard
[Feature]: Modify the logic of `flattenMdxContent` to support `replaceRules`
`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
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