fix(markdown): Add streaming prop to markdown element (#11025)
parent
f607353be6
commit
8c05eb22b1
|
|
@ -1341,7 +1341,12 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess
|
|||
<box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0}>
|
||||
<Switch>
|
||||
<Match when={Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}>
|
||||
<markdown syntaxStyle={syntax()} content={props.part.text.trim()} conceal={ctx.conceal()} />
|
||||
<markdown
|
||||
syntaxStyle={syntax()}
|
||||
streaming={true}
|
||||
content={props.part.text.trim()}
|
||||
conceal={ctx.conceal()}
|
||||
/>
|
||||
</Match>
|
||||
<Match when={!Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}>
|
||||
<code
|
||||
|
|
|
|||
Loading…
Reference in New Issue