Skip to content

Commit 1cf4643

Browse files
committed
fix(viewer): fix memory leak in cilent MD rendering
Solved by downgrading rehype-highlight.
1 parent 9a78aa3 commit 1cf4643

File tree

2 files changed

+491
-137
lines changed

2 files changed

+491
-137
lines changed

packages/viewer/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"inspect": "cross-env NODE_OPTIONS='$NODE_OPTIONS --inspect' next start"
1011
},
1112
"dependencies": {
1213
"@floating-ui/dom": "^1.5.3",
@@ -20,9 +21,9 @@
2021
"react-dom": "^18.2.0",
2122
"react-icons": "^4.11.0",
2223
"react-infinite-scroll-component": "^6.1.0",
23-
"react-markdown": "^9.0.0",
24-
"rehype-highlight": "^7.0.0",
25-
"rehype-katex": "^7.0.0",
24+
"react-markdown": "^8.0.0",
25+
"rehype-highlight": "^6.0.0",
26+
"rehype-katex": "^6.0.0",
2627
"remark-gfm": "^4.0.0",
2728
"remark-luogu-flavor": "^1.0.0",
2829
"remark-math": "^6.0.0",
@@ -38,6 +39,7 @@
3839
"@types/react": "^18.2.34",
3940
"@types/react-dom": "^18.2.14",
4041
"@typescript-eslint/eslint-plugin": "^6.9.1",
42+
"cross-env": "^7.0.3",
4143
"eslint": "^8.53.0",
4244
"eslint-config-airbnb": "^19.0.4",
4345
"eslint-config-airbnb-typescript": "^17.1.0",

0 commit comments

Comments
 (0)