Skip to content

Commit 8a2e22b

Browse files
committed
fix: update markdown remark and rehype package versions
1 parent 4b3403b commit 8a2e22b

File tree

3 files changed

+149
-272
lines changed

3 files changed

+149
-272
lines changed

app/components/markdown.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,7 @@ function _MarkDownContent(props: { content: string }) {
142142

143143
return (
144144
<ReactMarkdown
145-
remarkPlugins={
146-
[
147-
// RemarkMath,
148-
RemarkGfm,
149-
RemarkBreaks,
150-
] as PluggableList
151-
}
145+
remarkPlugins={[RemarkMath, RemarkGfm, RemarkBreaks] as PluggableList}
152146
rehypePlugins={
153147
[
154148
RehypeKatex,

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
"react-dom": "^18.2.0",
3434
"react-markdown": "^9.0.1",
3535
"react-router-dom": "^6.23.1",
36-
"rehype-highlight": "^6.0.0",
37-
"rehype-katex": "^6.0.3",
38-
"remark-breaks": "^3.0.2",
36+
"rehype-highlight": "^7.0.0",
37+
"rehype-katex": "^7.0.0",
38+
"remark-breaks": "^4.0.0",
3939
"remark-gfm": "^4.0.0",
40-
"remark-math": "^5.1.1",
40+
"remark-math": "^6.0.0",
4141
"sass": "^1.59.2",
4242
"spark-md5": "^3.0.2",
4343
"use-debounce": "^10.0.1",

0 commit comments

Comments
 (0)