aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/highlight.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-06 10:52:27 +0900
committernsfisis <nsfisis@gmail.com>2025-09-06 10:52:27 +0900
commit6bb6ef63f0893f01ff30aa7d0544e667eb0ea675 (patch)
treed66b2ae7ff1bf2613fccab95ce72913094a4fbeb /frontend/app/highlight.ts
parent04b890d202b23fef6803869db98810ad6f3af4c0 (diff)
downloadiosdc-japan-2025-albatross-6bb6ef63f0893f01ff30aa7d0544e667eb0ea675.tar.gz
iosdc-japan-2025-albatross-6bb6ef63f0893f01ff30aa7d0544e667eb0ea675.tar.zst
iosdc-japan-2025-albatross-6bb6ef63f0893f01ff30aa7d0544e667eb0ea675.zip
fix(frontend): disable highlight for swift temporarily
Diffstat (limited to 'frontend/app/highlight.ts')
-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",
});