Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"normalize.css": "^8.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-markdown": "^9.0.3",
"react-markdown": "^10.0.0",
"react-router-dom": "^7.2.0",
"react-syntax-highlighter": "^15.6.1",
"react-window": "^1.8.11",
Expand Down
1 change: 0 additions & 1 deletion web/src/components/ChatMessage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ const ChatMessage = ({ convId, message }) => {
</div>
<div className={styles.messageBody}>
<Markdown
className={styles.messageContent}
remarkPlugins={[remarkGfm, remarkMath]}
rehypePlugins={[rehypeKatex]}
components={{
Expand Down
7 changes: 2 additions & 5 deletions web/src/components/ChatMessage/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
.messageBody {
padding-left: 3vw;
padding-right: 3vw;
word-break: break-word;
overflow-wrap: break-word;
}

.messageBody:hover .messageFeedbacks {
Expand All @@ -52,11 +54,6 @@
transition: opacity 1s;
}

.messageContent {
word-break: break-word;
overflow-wrap: break-word;
}

.messageCodeTitle {
padding: 5px;
padding-left: 10px;
Expand Down
11 changes: 6 additions & 5 deletions web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1886,7 +1886,7 @@ __metadata:
normalize.css: "npm:^8.0.1"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
react-markdown: "npm:^9.0.3"
react-markdown: "npm:^10.0.0"
react-router-dom: "npm:^7.2.0"
react-syntax-highlighter: "npm:^15.6.1"
react-window: "npm:^1.8.11"
Expand Down Expand Up @@ -5127,11 +5127,12 @@ __metadata:
languageName: node
linkType: hard

"react-markdown@npm:^9.0.3":
version: 9.0.3
resolution: "react-markdown@npm:9.0.3"
"react-markdown@npm:^10.0.0":
version: 10.0.0
resolution: "react-markdown@npm:10.0.0"
dependencies:
"@types/hast": "npm:^3.0.0"
"@types/mdast": "npm:^4.0.0"
devlop: "npm:^1.0.0"
hast-util-to-jsx-runtime: "npm:^2.0.0"
html-url-attributes: "npm:^3.0.0"
Expand All @@ -5144,7 +5145,7 @@ __metadata:
peerDependencies:
"@types/react": ">=18"
react: ">=18"
checksum: 10c0/7f1aef171b49af9b84896917c033cbc0f45d0d2b4a5db5a339bf96977a143ae19f21cb7a69a6878b718d5578db021e96372fa33621b79bf57a87efb9b3c84166
checksum: 10c0/9846efb451f5c9a47371458c81117c03bc75d51e11917a8ae2a43b3902624aa29534124edd635b81f421111ab4c7978a904ad49199d010d2bbd50c42674eeae6
languageName: node
linkType: hard

Expand Down
Loading