Skip to content

Commit

Permalink
fix(viewer): fix memory leak in cilent MD rendering
Browse files Browse the repository at this point in the history
Solved by downgrading rehype-highlight.
  • Loading branch information
immccn123 committed Nov 7, 2023
1 parent 9a78aa3 commit 1cf4643
Show file tree
Hide file tree
Showing 2 changed files with 491 additions and 137 deletions.
10 changes: 6 additions & 4 deletions packages/viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"inspect": "cross-env NODE_OPTIONS='$NODE_OPTIONS --inspect' next start"
},
"dependencies": {
"@floating-ui/dom": "^1.5.3",
Expand All @@ -20,9 +21,9 @@
"react-dom": "^18.2.0",
"react-icons": "^4.11.0",
"react-infinite-scroll-component": "^6.1.0",
"react-markdown": "^9.0.0",
"rehype-highlight": "^7.0.0",
"rehype-katex": "^7.0.0",
"react-markdown": "^8.0.0",
"rehype-highlight": "^6.0.0",
"rehype-katex": "^6.0.0",
"remark-gfm": "^4.0.0",
"remark-luogu-flavor": "^1.0.0",
"remark-math": "^6.0.0",
Expand All @@ -38,6 +39,7 @@
"@types/react": "^18.2.34",
"@types/react-dom": "^18.2.14",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"cross-env": "^7.0.3",
"eslint": "^8.53.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
Expand Down
Loading

0 comments on commit 1cf4643

Please sign in to comment.