Open kimye0808 opened 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.
@kimye0808 It looks like I fixed this issue. upgrade v5.0.10
v5.0.10
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.