From 463671abde0b7ad6bf279ea7e996d15783c210ef Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 25 Jun 2025 00:19:18 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/app/page.tsx | 2 +- .../src/components/code-block/{highlight.tsx => highlight.ts} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename apps/web/src/components/code-block/{highlight.tsx => highlight.ts} (92%) diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx index 361d8709..4695f6d4 100644 --- a/apps/web/src/app/page.tsx +++ b/apps/web/src/app/page.tsx @@ -53,7 +53,7 @@ export default async function TheBestDamnLandingPageEver() { {/* How it works section */}

- How It Works + LLM Tools that work everywhere

{ className = cn('w-full text-wrap p-4 text-sm rounded-sm', className) - const out = await codeToHast(code, { + const hast = await codeToHast(code, { lang, theme, // TODO: use a custom `pre` element down below instead of this @@ -33,7 +33,7 @@ export async function highlight({ ] }) - return toJsxRuntime(out, { + return toJsxRuntime(hast, { Fragment, jsx, jsxs