From 6dc42c1ba82f0cfc8e86ceea608b086c0184914a Mon Sep 17 00:00:00 2001
From: Krishna Ayyalasomayajula
Date: Mon, 1 Jun 2026 21:20:44 -0500
Subject: [PATCH] =?UTF-8?q?fix:=20fix=20empty=20post=20bodies=20=E2=80=94?=
=?UTF-8?q?=20stop=20double-compiling=20MDX?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/posts/[slug]/page.tsx | 19 +++++++++++-
lib/posts.ts | 61 +++++++++++++++++++--------------------
2 files changed, 47 insertions(+), 33 deletions(-)
diff --git a/app/posts/[slug]/page.tsx b/app/posts/[slug]/page.tsx
index aacd516..53ae86f 100644
--- a/app/posts/[slug]/page.tsx
+++ b/app/posts/[slug]/page.tsx
@@ -1,5 +1,10 @@
import { notFound } from 'next/navigation'
import { MDXRemote } from 'next-mdx-remote/rsc'
+import { useMDXComponents } from '@/mdx-components'
+import remarkMath from 'remark-math'
+import remarkGfm from 'remark-gfm'
+import rehypePrettyCode from 'rehype-pretty-code'
+import rehypeKatex from 'rehype-katex'
import { getPosts, getPost, getReadingTime } from '@/lib/posts'
import { TableOfContents } from '@/components/blog/TableOfContents'
import { ScrollToTop } from '@/components/ui/ScrollToTop'
@@ -43,7 +48,19 @@ export default async function PostPage({ params }: { params: Promise<{ slug: str
-
+