Pipeline and S2S models write emphasis, lists, code, and links; before
this they arrived as literal asterisks and backticks. Styling is
per-element (theme colors via inline styles, spacing via Tailwind) so it
stays on the default client's type scale and follows custom themes.
The optional variant selects the type scale (see
MarkdownVariant).
GFM is on for tables and strikethrough. react-markdown does not render
raw HTML unless rehype-raw is added — keep it that way, this text comes
from a model.
Memoized alongside MessageBubble: message content is referentially
stable across snapshots, so only the streaming row re-parses.
Agent prose, rendered as Markdown.
Pipeline and S2S models write emphasis, lists,
code, and links; before this they arrived as literal asterisks and backticks. Styling is per-element (theme colors via inline styles, spacing via Tailwind) so it stays on the default client's type scale and follows custom themes. The optionalvariantselects the type scale (see MarkdownVariant). GFM is on for tables and strikethrough. react-markdown does not render raw HTML unless rehype-raw is added — keep it that way, this text comes from a model.Memoized alongside
MessageBubble: message content is referentially stable across snapshots, so only the streaming row re-parses.