File tree Expand file tree Collapse file tree 3 files changed +675
-5
lines changed
app/classroom/[classroomId]/chat Expand file tree Collapse file tree 3 files changed +675
-5
lines changed Original file line number Diff line number Diff line change 77 sendMessage ,
88} from "@/app/lib/ragflow/chat/chat-client" ;
99import { toast } from "@/hooks/use-toast" ;
10+ import ReactMarkdown from "react-markdown" ;
1011
1112function MessageBox ( props : {
1213 chatClient : ChatClientWithSession ;
@@ -66,7 +67,7 @@ function MessageBox(props: {
6667 } `}
6768 >
6869 < p className = "font-medium text-gray-800" >
69- { cleanMessage ( aMessage . content ) }
70+ < ReactMarkdown > { cleanMessage ( aMessage . content ) } </ ReactMarkdown >
7071 </ p >
7172 </ div >
7273 ) ) }
Original file line number Diff line number Diff line change 3737 "next-themes" : " ^0.4.6" ,
3838 "react" : " ^19.0.0" ,
3939 "react-dom" : " ^19.0.0" ,
40+ "react-markdown" : " ^10.1.0" ,
4041 "tailwind-merge" : " ^3.0.2" ,
4142 "tailwindcss-animate" : " ^1.0.7"
4243 },
You can’t perform that action at this time.
0 commit comments