aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/app/highlight.ts2
1 files changed, 1 insertions, 1 deletions
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",
});