AI Response Markdown

Compare bare Streamdown defaults against the opt-in compact class used for AI/Agent assistant responses.


Variant:
Preview ยท Default

Markdown kitchen sink

A quick tour of the common shapes an AI response can render.

Headings

Heading level 3

Heading level 4

Heading level 5
Heading level 6

Text & emphasis

This paragraph mixes bold, italic, bold italic, strikethrough, and inline code. Here is an and a bare autolink that should be clickable.

Single-level quote with emphasis inside.

Nested quote, second level.

Lists

  • First item
  • Second item
    • Nested item
    • Another nested item
      • Third level
  • Third item
  1. Step one
  2. Step two
    1. Sub-step a
    2. Sub-step b
  3. Step three
  • Move renderer into kits/agent-chat
  • Tune markdown styles

Code

Inline const x = 1 and a fenced block:

ts
import { Streamdown } from "streamdown";
export function render(markdown: string) {  const compact = markdown.trim();  return compact;}

Table

FieldTypeNotes
idstringrequired, unique
labelstringshown in the picker
hrefstringsee

A long inline URL: