rehype-highlight
rehype-highlight copied to clipboard
It looks like there is a memory leak issue
Initial checklist
- [X] I read the support docs
- [X] I read the contributing guide
- [X] I agree to follow the code of conduct
- [X] I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
7.0.0
Link to runnable example
No response
Steps to reproduce
Render long text with typewriter effect
Expected behavior
Memory usage is normal
Actual behavior
Memory leak occurs after upgrading dependencies: "react-dom": "^18.2.0", "react-markdown": "^9.0.0", "react-router-dom": "^6.15.0", "rehype-highlight": "7.0.0", "rehype-katex": "^7.0.0", "remark-breaks": "^4.0.0", "remark-gfm": "^4.0.0", "remark-math": "^6.0.0",
No memory leak dependencies: "react-dom": "^18.2.0", "react-markdown": "^8.0.7", "react-router-dom": "^6.14.1", "rehype-highlight": "^6.0.0", "rehype-katex": "^6.0.3", "remark-breaks": "^3.0.2", "remark-gfm": "^3.0.1", "remark-math": "^5.1.1",
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
See https://github.com/remarkjs/react-markdown/issues/791 for traces and discussion. This looks like an issue in highlight js rather than here.