Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix: map gitignore to ini for Shiki syntax highlighting (#848)
ranvier2d290d9a2ad1f18
diff --git a/apps/web/src/components/ChatMarkdown.tsx b/apps/web/src/components/ChatMarkdown.tsxindex da44045c9..f4298fc22 100644--- a/apps/web/src/components/ChatMarkdown.tsx+++ b/apps/web/src/components/ChatMarkdown.tsx@@ -66,7 +66,9 @@ const highlighterPromiseCache = new Map<string, Promise<DiffsHighlighter>>();function extractFenceLanguage(className: string | undefined): string {const match = className?.match(CODE_FENCE_LANGUAGE_REGEX);- return match?.[1] ?? "text";+ const raw = match?.[1] ?? "text";+ // Shiki doesn't bundle a gitignore grammar; ini is a close match (#685)+ return raw === "gitignore" ? "ini" : raw;}function nodeToPlainText(node: ReactNode): string {