Skip to content

Commit 02e9f89

Browse files
committed
Refactor MarkdownRenderer component and update DeepSeek Sparse Attention links
- Changed the outer container from a div to a span in the MarkdownRenderer for better semantic structure. - Updated links in the DeepSeek Sparse Attention content to include additional GitHub resources, enhancing accessibility to related materials.
1 parent 25ac42e commit 02e9f89

File tree

3 files changed

+319
-9
lines changed

3 files changed

+319
-9
lines changed

components/markdown-renderer.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export function MarkdownRenderer({ content }: MarkdownRendererProps) {
109109
// Handle external images
110110
if (typeof src === 'string' && src.startsWith('http')) {
111111
return (
112-
<div className="my-6 rounded-lg overflow-hidden border border-gray-700">
112+
<span className="block my-6 rounded-lg overflow-hidden border border-gray-700">
113113
<Image
114114
src={src}
115115
alt={alt || ''}
@@ -119,17 +119,17 @@ export function MarkdownRenderer({ content }: MarkdownRendererProps) {
119119
loading="lazy"
120120
/>
121121
{alt && (
122-
<p className="text-center text-sm text-gray-400 mt-2 px-4 pb-4">
122+
<span className="block text-center text-sm text-gray-400 mt-2 px-4 pb-4">
123123
{alt}
124-
</p>
124+
</span>
125125
)}
126-
</div>
126+
</span>
127127
);
128128
}
129129

130130
// Handle local images with Next.js Image
131131
return (
132-
<div className="my-6 rounded-lg overflow-hidden border border-gray-700">
132+
<span className="block my-6 rounded-lg overflow-hidden border border-gray-700">
133133
<Image
134134
src={src as string}
135135
alt={alt || ''}
@@ -139,11 +139,11 @@ export function MarkdownRenderer({ content }: MarkdownRendererProps) {
139139
priority={false}
140140
/>
141141
{alt && (
142-
<p className="text-center text-sm text-gray-400 mt-2 px-4 pb-4">
142+
<span className="block text-center text-sm text-gray-400 mt-2 px-4 pb-4">
143143
{alt}
144-
</p>
144+
</span>
145145
)}
146-
</div>
146+
</span>
147147
);
148148
},
149149
// Custom table styles

public/content/deepseek-sparse-attention/deepseek-sparse-attention-content.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hero:
77
- "📄 Research Article"
88
---
99

10-
[Research Paper](https://github.com/deepseek-ai/DeepSeek-V3.2-Exp/blob/main/DeepSeek_V3_2.pdf)[Model](https://huggingface.co/deepseek-ai/DeepSeek-V3.2-Exp)[GPU Kernels](https://github.com/deepseek-ai/DeepSeek-V3.2-Exp) (TileLang for research, CUDA for production)
10+
[Research Paper](https://github.com/deepseek-ai/DeepSeek-V3.2-Exp/blob/main/DeepSeek_V3_2.pdf)[Model](https://huggingface.co/deepseek-ai/DeepSeek-V3.2-Exp)[GitHub (DeepSeek)](https://github.com/deepseek-ai/DeepSeek-V3.2-Exp) [GitHub (Our Research)](https://github.com/Open-Superintelligence-Lab/deepseek-sparse-attention-research)
1111

1212
![Inference Cost Comparison](/images/deepseek/Inference-cost.jpeg)
1313

0 commit comments

Comments
 (0)