Skip to content

Commit f478159

Browse files
Render chat markdown with richer file and table chrome
- add sanitized markdown details, footnotes, line breaks, and table copy/export affordances - reuse file and skill chip styling in chat markdown and composer links - update mobile file mention insertion to emit file links
1 parent 5283911 commit f478159

35 files changed

Lines changed: 2608 additions & 558 deletions

‎apps/mobile/src/features/threads/ThreadComposer.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
import {
1111
detectComposerTrigger,
1212
replaceTextRange,
13-
serializeComposerMentionPath,
13+
serializeComposerFileLink,
1414
type ComposerTrigger,
1515
} from "@t3tools/shared/composerTrigger";
1616
import { TextInputWrapper } from "expo-paste-input";
@@ -419,7 +419,7 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer
419419

420420
let replacement = "";
421421
if (item.type === "path") {
422-
replacement = `@${serializeComposerMentionPath(item.path)} `;
422+
replacement = `${serializeComposerFileLink(item.path)} `;
423423
} else if (item.type === "skill") {
424424
replacement = `$${item.skill.name} `;
425425
} else if (item.type === "slash-command") {

‎apps/web/package.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
"react": "19.2.6",
4242
"react-dom": "19.2.6",
4343
"react-markdown": "^10.1.0",
44+
"rehype-raw": "^7.0.0",
45+
"rehype-sanitize": "^6.0.0",
46+
"remark-breaks": "^4.0.0",
4447
"remark-gfm": "^4.0.1",
4548
"tailwind-merge": "^3.4.0",
4649
"zustand": "^5.0.11"

0 commit comments

Comments
 (0)