mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
fix(markdown): Add streaming prop to markdown element (#11025)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user