Creates a UI element for a markdown_stream(). A markdown stream can be
useful for displaying generative AI responses (outside of a chat interface),
streaming logs, or other use cases where chunks of content are generated
over time.
output_markdown_stream(
id,
...,
content = "",
content_type = "markdown",
auto_scroll = TRUE,
width = "min(680px, 100%)",
height = "auto"
)A unique identifier for this markdown stream.
Extra HTML attributes to include on the chat element
A string of content to display before any streaming occurs.
When content_type is Markdown or HTML, it may also be UI element(s) such
as input and output bindings.
The content type. Default is "markdown" (specifically,
CommonMark). Supported content types include:
* "markdown": markdown text, specifically CommonMark
* "html": for rendering HTML content.
* "text": for plain text.
* "semi-markdown": for rendering markdown, but with HTML tags escaped.
Whether to automatically scroll to the bottom of a scrollable container when new content is added. Default is True.
The width of the UI element.
The height of the UI element.
A shiny tag object.