@@ -124,7 +124,7 @@ export default function ResponsePanel({
124
124
}
125
125
126
126
// Define custom components for ReactMarkdown
127
- const markdownComponents : Components = {
127
+ export const markdownComponents : Components = {
128
128
code ( { className, children, ...props } ) {
129
129
// Check if this is an inline code block by examining the parent node
130
130
const isInline = ! className ?. includes ( "language-" ) ;
@@ -165,29 +165,29 @@ const markdownComponents: Components = {
165
165
} ,
166
166
// Add styling for other markdown elements
167
167
p ( { children } ) {
168
- return < p className = "mb-4 leading-6" > { children } </ p > ;
168
+ return < p className = "leading-6" > { children } </ p > ;
169
169
} ,
170
170
ul ( { children } ) {
171
- return < ul className = "mb-4 ml-6 list-disc" > { children } </ ul > ;
171
+ return < ul className = "ml-6 list-disc" > { children } </ ul > ;
172
172
} ,
173
173
ol ( { children } ) {
174
- return < ol className = "mb-4 ml-6 list-decimal" > { children } </ ol > ;
174
+ return < ol className = "ml-6 list-decimal" > { children } </ ol > ;
175
175
} ,
176
176
li ( { children } ) {
177
- return < li className = "mb-2 " > { children } </ li > ;
177
+ return < li className = "" > { children } </ li > ;
178
178
} ,
179
179
h1 ( { children } ) {
180
- return < h1 className = "mb-4 text-2xl font-semibold" > { children } </ h1 > ;
180
+ return < h1 className = "text-2xl font-semibold" > { children } </ h1 > ;
181
181
} ,
182
182
h2 ( { children } ) {
183
- return < h2 className = "mb-3 text-xl font-semibold" > { children } </ h2 > ;
183
+ return < h2 className = "text-xl font-semibold" > { children } </ h2 > ;
184
184
} ,
185
185
h3 ( { children } ) {
186
- return < h3 className = "mb-3 text-lg font-semibold" > { children } </ h3 > ;
186
+ return < h3 className = "text-lg font-semibold" > { children } </ h3 > ;
187
187
} ,
188
188
blockquote ( { children } ) {
189
189
return (
190
- < blockquote className = "mb-4 border-l-4 border-muted-foreground/30 pl-4 italic text-muted-foreground" >
190
+ < blockquote className = "border-l-4 border-muted-foreground/30 pl-4 italic text-muted-foreground" >
191
191
{ children }
192
192
</ blockquote >
193
193
) ;
0 commit comments