Function: MarkdownWithEmbeds()
MarkdownWithEmbeds(
__namedParameters):Element
Render the assistant’s markdown with chart and data tables placed at their inline marker positions. Each prose segment is its own AssistantMarkdown so streaming chunks still incrementally parse correctly; embed slots break the markdown flow with full-width block elements.
Each marker resolves through its own slot:
[chart:<id>]-> ChartSlot long-polls the server-side chart cache and renders the Echarts spec inline once ready (or nothing on miss / TTL-expired).[data:<statement_id>]-> DataSlot fetches the statement rows OBO-scoped and renders an inline Table (or nothing on 404 / empty result).
Stale markers in persisted transcript text are silently dropped on reload so the prose around them stays clean.
streaming flags the bubble as still receiving tokens; it opts the
prose segments into Streamdown’s word-by-word fade-in so the reply
eases in rather than snapping in whole chunks. Settled bubbles pass
false and render plain markdown.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”streaming?
Section titled “streaming?”boolean = false
string
Returns
Section titled “Returns”Element