@@ -6,7 +6,7 @@ import remarkMath from 'remark-math';
66import rehypeHighlight from 'rehype-highlight' ;
77import rehypeKatex from 'rehype-katex' ;
88import Image from 'next/image' ;
9- import 'highlight.js/styles/github -dark.css' ;
9+ import 'highlight.js/styles/atom-one -dark.css' ;
1010import 'katex/dist/katex.min.css' ;
1111import '../styles/math-styles.css' ;
1212
@@ -92,8 +92,10 @@ export function MarkdownRenderer({ content }: MarkdownRendererProps) {
9292 ) ;
9393 } ,
9494 pre : ( { children } ) => (
95- < pre className = "bg-slate-900 border border-gray-700 rounded-lg p-6 overflow-x-auto mb-10 text-sm" >
96- { children }
95+ < pre className = "bg-slate-900 border border-gray-700 rounded-lg p-6 overflow-x-auto mb-10 text-sm font-mono leading-relaxed text-gray-200" >
96+ < code className = "text-gray-200" >
97+ { children }
98+ </ code >
9799 </ pre >
98100 ) ,
99101 // Custom blockquote styles
@@ -106,9 +108,19 @@ export function MarkdownRenderer({ content }: MarkdownRendererProps) {
106108 img : ( { src, alt } ) => {
107109 if ( ! src ) return null ;
108110
109- // Check if this is the architecture diagram that should be smaller
111+ // Check if this is the architecture comparison diagram that should be larger
112+ const isArchitectureComparison = alt ?. includes ( 'SD-VAE vs RAE' ) || ( typeof src === 'string' && src . includes ( 'architecture-comparison' ) ) ;
113+ // Check if this is other architecture diagrams that should be smaller
110114 const isArchitectureDiagram = alt ?. includes ( 'Architecture' ) || ( typeof src === 'string' && src . includes ( 'architecture' ) ) ;
111- const imageClassName = isArchitectureDiagram ? "w-1/2 h-auto mx-auto" : "w-full h-auto" ;
115+
116+ let imageClassName ;
117+ if ( isArchitectureComparison ) {
118+ imageClassName = "w-full h-auto" ; // Full width for comparison diagrams
119+ } else if ( isArchitectureDiagram ) {
120+ imageClassName = "w-1/2 h-auto mx-auto" ; // Half width for other architecture diagrams
121+ } else {
122+ imageClassName = "w-full h-auto" ; // Default full width
123+ }
112124
113125 // Handle external images
114126 if ( typeof src === 'string' && src . startsWith ( 'http' ) ) {
0 commit comments