Skip to content

Commit 99b1055

Browse files
authored
Merge pull request #7 from Open-Superintelligence-Lab/languages
dit
2 parents b2725f0 + 9178662 commit 99b1055

17 files changed

+1187
-418
lines changed

app/blog/diffusion-transformer-representation-autoencoder/page.tsx

Lines changed: 387 additions & 0 deletions
Large diffs are not rendered by default.

app/page.tsx

Lines changed: 63 additions & 413 deletions
Large diffs are not rendered by default.

components/markdown-renderer.tsx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import remarkMath from 'remark-math';
66
import rehypeHighlight from 'rehype-highlight';
77
import rehypeKatex from 'rehype-katex';
88
import Image from 'next/image';
9-
import 'highlight.js/styles/github-dark.css';
9+
import 'highlight.js/styles/atom-one-dark.css';
1010
import 'katex/dist/katex.min.css';
1111
import '../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')) {

public/content/diffusion-transformer-representation-autoencoder/diffusion-transformer-rae-content.md

Lines changed: 390 additions & 0 deletions
Large diffs are not rendered by default.
244 KB
Loading
205 KB
Loading
1.57 MB
Loading
91.6 KB
Loading
82.2 KB
Loading
2.25 MB
Loading

0 commit comments

Comments
 (0)