mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat(markdown): render inline images in messages and markdown files
Route markdown image nodes through a shared MarkdownImage component that loads local paths through the raw file API, and allow data:image/* sources through the sanitizer and URL transform so inline images survive rendering. Render image attachments as thumbnails in the message thread, and accept image/webp uploads.
This commit is contained in:
1 parent
93faf387d2
commit
be93975d90
13 files changed
+263
-18
No files matched your search
@@ -25,7 +25,7 @@ export const MessagePart = memo(function MessagePart({ part, messageID, director
|
||||
|
||||
switch (part.type) {
|
||||
case 'text':
|
||||
return <TextPart text={part.text} onFileClick={onFileClick} />
|
||||
return <TextPart text={part.text} onFileClick={onFileClick} directory={directory} />
|
||||
case 'reasoning':
|
||||
if (simpleChatMode || !showReasoning) return null
|
||||
if (!part.text.trim()) return null
|
||||
|
||||
Reference in new issue
Block a user