diff --git a/web/app/guides/[slug]/page.tsx b/web/app/guides/[slug]/page.tsx index d343d3a..fb77986 100644 --- a/web/app/guides/[slug]/page.tsx +++ b/web/app/guides/[slug]/page.tsx @@ -21,12 +21,22 @@ export async function generateStaticParams() { export default async function GuidePage({ params }: { params: { slug: string } }) { const guideContent = await getGuideContent(params.slug) + + const wrapCodeBlocks = (content: string) => { + return content.replace( + /
([\s\S]*?)<\/code><\/pre>/g,
+      (match, code) => ``,
+    )
+  }
+
+  const wrappedContent = wrapCodeBlocks(guideContent)
+
   return (