From 6bb6ef63f0893f01ff30aa7d0544e667eb0ea675 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Sep 2025 10:52:27 +0900 Subject: fix(frontend): disable highlight for swift temporarily --- frontend/app/highlight.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/app/highlight.ts') diff --git a/frontend/app/highlight.ts b/frontend/app/highlight.ts index 1eea8a2..b17a2c9 100644 --- a/frontend/app/highlight.ts +++ b/frontend/app/highlight.ts @@ -8,7 +8,7 @@ export type { BundledLanguage }; // https://shiki.matsu.io/packages/next export async function highlight(code: string, lang: BundledLanguage) { const out = await codeToHast(code.trimEnd(), { - lang, + lang: lang === "swift" ? "text" : lang, theme: "github-light", }); -- cgit v1.2.3-70-g09d2