Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

fix: chat tables now render with visible borders and header background

nash_su365a23f14522
diff --git a/src/components/chat/chat-message.tsx b/src/components/chat/chat-message.tsx
index 8560c2d6..a5978f01 100644
--- a/src/components/chat/chat-message.tsx
+++ b/src/components/chat/chat-message.tsx
@@ -371,6 +371,20 @@ function MarkdownContent({ content }: { content: string }) {
</span>
)
},
+ table: ({ children, ...props }) => (
+ <div className="my-2 overflow-x-auto">
+ <table className="w-full border-collapse text-xs" {...props}>{children}</table>
+ </div>
+ ),
+ thead: ({ children, ...props }) => (
+ <thead className="bg-muted/50" {...props}>{children}</thead>
+ ),
+ th: ({ children, ...props }) => (
+ <th className="border border-border px-2 py-1 text-left font-semibold" {...props}>{children}</th>
+ ),
+ td: ({ children, ...props }) => (
+ <td className="border border-border px-2 py-1" {...props}>{children}</td>
+ ),
pre: ({ children, ...props }) => (
<pre className="rounded bg-background/50 p-2 text-xs overflow-x-auto" {...props}>{children}</pre>
),