flip back to markdown renderable (#27421)

This commit is contained in:
Sebastian 2026-05-14 03:53:48 +02:00 committed by GitHub
commit b0ade40265
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 6 additions and 29 deletions

View file

@ -1528,14 +1528,14 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess
return (
<Show when={props.part.text.trim()}>
<box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0}>
<code
filetype="markdown"
drawUnstyledText={false}
streaming={true}
<markdown
syntaxStyle={syntax()}
streaming={true}
internalBlockMode="top-level"
content={props.part.text.trim()}
conceal={ctx.conceal()}
fg={theme.text}
fg={theme.markdownText}
bg={theme.background}
/>
</box>
</Show>