@@ -36,8 +36,7 @@ export const MarkdownRenderer: React.FC<{
3636 skipHtml ?: boolean ;
3737} > = ( markdownProps ) => {
3838 const { markdownText, className, code } = markdownProps ;
39- const commonHeadingClassName =
40- "mb-2 pb-2 leading-5 font-semibold tracking-tight" ;
39+ const commonHeadingClassName = "mb-2 leading-5 font-semibold tracking-tight" ;
4140
4241 return (
4342 < div className = { className } >
@@ -49,7 +48,7 @@ export const MarkdownRenderer: React.FC<{
4948 < h2
5049 className = { cn (
5150 commonHeadingClassName ,
52- "mb-3 border-border border-b text-xl md:text-2xl" ,
51+ "mb-3 border-border border-b pb-2 text-xl md:text-2xl" ,
5352 ) }
5453 { ...cleanedProps ( props ) }
5554 />
@@ -60,7 +59,7 @@ export const MarkdownRenderer: React.FC<{
6059 { ...cleanedProps ( props ) }
6160 className = { cn (
6261 commonHeadingClassName ,
63- "mt-8 mb-3 border-border border-b text-lg md:text-xl" ,
62+ "mt-8 mb-3 border-border border-b pb-2 text-lg md:text-xl" ,
6463 ) }
6564 />
6665 ) ,
@@ -105,6 +104,10 @@ export const MarkdownRenderer: React.FC<{
105104 />
106105 ) ,
107106
107+ hr : ( props ) => (
108+ < hr { ...cleanedProps ( props ) } className = "my-5 bg-border" />
109+ ) ,
110+
108111 code : ( { ...props } ) => {
109112 const codeStr = onlyText ( props . children ) ;
110113
@@ -180,21 +183,21 @@ export const MarkdownRenderer: React.FC<{
180183 ul : ( props ) => {
181184 return (
182185 < ul
183- className = "mb-6 list-outside list-disc pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
186+ className = "mb-4 list-outside list-disc pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
184187 { ...cleanedProps ( props ) }
185188 />
186189 ) ;
187190 } ,
188191 ol : ( props ) => (
189192 < ol
190- className = "mb-6 list-outside list-decimal pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
193+ className = "mb-4 list-outside list-decimal pl-5 [&_ol_li:first-of-type]:mt-1.5 [&_ul_li:first-of-type]:mt-1.5"
191194 { ...cleanedProps ( props ) }
192195 />
193196 ) ,
194197 li : ( { children : c , ...props } ) => (
195198 < li
196199 className = { cn (
197- "mb-2 text-muted-foreground leading-loose [&>p]:m-0" ,
200+ "mb-1.5 text-muted-foreground leading-loose [&>p]:m-0" ,
198201 markdownProps . li ?. className ,
199202 ) }
200203 { ...cleanedProps ( props ) }
0 commit comments