Skip to content

Commit c462212

Browse files
Codestzclaude
andcommitted
feat: add remark-gfm, Vercel Speed Insights, fix hydration error, update current work
- Add remark-gfm to enable markdown table rendering in MDX blog posts - Add @vercel/speed-insights to app layout - Fix nested <p> hydration error in Callout component - Update current-work.mdx to reflect MCPX project Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cb33e59 commit c462212

File tree

7 files changed

+260
-15
lines changed

7 files changed

+260
-15
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@types/mdx": "^2.0.13",
2828
"@types/react-syntax-highlighter": "^15.5.13",
2929
"@vercel/analytics": "^1.6.1",
30+
"@vercel/speed-insights": "^2.0.0",
3031
"clsx": "^2.1.1",
3132
"fuse.js": "^7.1.0",
3233
"gray-matter": "^4.0.3",
@@ -40,6 +41,7 @@
4041
"react-dom": "19.2.3",
4142
"react-syntax-highlighter": "^16.1.0",
4243
"reading-time": "^1.5.0",
44+
"remark-gfm": "^4.0.1",
4345
"tailwind-merge": "^3.4.0"
4446
},
4547
"devDependencies": {

pnpm-lock.yaml

Lines changed: 235 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/experience/[slug]/page.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Button, Badge } from '@/components/ui';
77
import { contentService } from '@/lib/services';
88
import { ROUTES } from '@/lib/constants';
99
import type { Metadata } from 'next';
10+
import remarkGfm from 'remark-gfm';
1011
import { mdxComponents } from '../../../../mdx-components';
1112
import { generateProjectMetadata } from '@/lib/utils';
1213
import type { ExperiencePageProps } from './page.types';
@@ -163,7 +164,15 @@ export default async function ExperienceDetailPage({ params }: ExperiencePagePro
163164

164165
{/* Project Content */}
165166
<div className="mt-8">
166-
<MDXRemote source={project.content} components={mdxComponents} />
167+
<MDXRemote
168+
source={project.content}
169+
components={mdxComponents}
170+
options={{
171+
mdxOptions: {
172+
remarkPlugins: [remarkGfm],
173+
},
174+
}}
175+
/>
167176
</div>
168177
</article>
169178
</div>

0 commit comments

Comments
 (0)