uiwjs / react-markdown-preview

React component preview markdown text in web browser. The minimal amount of CSS to replicate the GitHub Markdown style. Support dark-mode/night mode.
https://uiwjs.github.io/react-markdown-preview
MIT License
271 stars 48 forks source link

When I pass rehypeSanitize to rehypePlugins, code highlight doesn't work. #259

Open kimye0808 opened 6 months ago

kimye0808 commented 6 months ago

https://github.com/uiwjs/react-markdown-preview?tab=readme-ov-file#security

Like the security-related example you presented, if I pass rehypeSanitize to rehypePlugins, the code highlight does not work. Is this intended? If I remove rehypePlugins, code highlight works normally. Thanks for reading.

jaywcjlove commented 6 months ago

@kimye0808 It looks like I fixed this issue. upgrade v5.0.10