mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
fix(frontend): disable incomplete markdown parsing for human messages (#2014)
Streamdown's streaming safeguard appends closing markers (e.g. `*`) to text with unmatched markdown syntax. This causes user messages containing literal `*` (such as `99 * 87`) to display with a spurious trailing asterisk. Human messages are always complete, so the incomplete-markdown pre-processing is unnecessary. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
563383c60f
commit
52718b0f23
@ -192,6 +192,7 @@ function MessageContent_({
|
||||
remarkPlugins={humanMessagePlugins.remarkPlugins}
|
||||
rehypePlugins={humanMessagePlugins.rehypePlugins}
|
||||
components={components}
|
||||
parseIncompleteMarkdown={false}
|
||||
>
|
||||
{contentToDisplay}
|
||||
</AIElementMessageResponse>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user