feat : markdown support on frontend

This commit is contained in:
martin legrand
2025-05-16 09:19:45 +02:00
parent 95d5aea1d5
commit 384d9a8c0b
3 changed files with 1180 additions and 1 deletions
File diff suppressed because it is too large Load Diff
+1
View File
@@ -10,6 +10,7 @@
"axios": "^1.8.4",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-markdown": "^10.1.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
+2 -1
View File
@@ -1,4 +1,5 @@
import React, { useState, useEffect, useRef } from 'react';
import ReactMarkdown from 'react-markdown';
import axios from 'axios';
import './App.css';
import { colors } from './colors';
@@ -193,7 +194,7 @@ function App() {
{msg.type === 'agent' && (
<span className="agent-name">{msg.agentName}</span>
)}
<p>{msg.content}</p>
<ReactMarkdown>{msg.content}</ReactMarkdown>
</div>
))
)}