rehype-highlight icon indicating copy to clipboard operation
rehype-highlight copied to clipboard

It looks like there is a memory leak issue

Open iccyuan opened this issue 1 year ago • 1 comments

Initial checklist

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

iccyuan avatar Jan 16 '24 17:01 iccyuan

See https://github.com/remarkjs/react-markdown/issues/791 for traces and discussion. This looks like an issue in highlight js rather than here.

ChristianMurphy avatar Jan 18 '24 14:01 ChristianMurphy