@devries-cameron20 / t3code Mirror · read-only / commits / 90d9a2ad1f
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 25, 08:45 UTC

fix: map gitignore to ini for Shiki syntax highlighting (#848)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

ranvier2d2 committed Mar 10, 2026 at 20:50 UTC 90d9a2ad1f1810b27d88f0dfc38304ec5b1de566
1 file changed +3 -1
apps/web/src/components/ChatMarkdown.tsx
+3 -1
@@ -66,7 +66,9 @@ const highlighterPromiseCache = new Map<string, Promise<DiffsHighlighter>>();
66
67 function extractFenceLanguage(className: string | undefined): string {
68 const match = className?.match(CODE_FENCE_LANGUAGE_REGEX);
69 - return match?.[1] ?? "text";
69 + const raw = match?.[1] ?? "text";
70 + // Shiki doesn't bundle a gitignore grammar; ini is a close match (#685)
71 + return raw === "gitignore" ? "ini" : raw;
72 }
73
74 function nodeToPlainText(node: ReactNode): string {