diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-06 10:52:27 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-06 10:52:27 +0900 |
| commit | 6bb6ef63f0893f01ff30aa7d0544e667eb0ea675 (patch) | |
| tree | d66b2ae7ff1bf2613fccab95ce72913094a4fbeb | |
| parent | 04b890d202b23fef6803869db98810ad6f3af4c0 (diff) | |
| download | iosdc-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
| -rw-r--r-- | frontend/app/highlight.ts | 2 |
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", }); |
