# Text, Caption & Markdown

> Body copy, muted captions, and sanitized Markdown content blocks with GFM support.

Render plain text with `text()`, subtle metadata labels with `caption()`, and full GitHub-Flavored Markdown (sanitized with `rehype-sanitize`) with `markdown_text()`.

[
  {"type": "text", "content": "PraisonAIUI blocks adapt automatically to light mode, dark mode, and custom theme presets."},
  {"type": "caption", "text": "Synced 12 seconds ago via /api/pages/overview"},
  {"type": "markdown_text", "content": "### Release Highlights\n- **Zero-code YAML** and Python `@aiui.page` parity\n- Interactive `A2UI` surfaces and live `ComponentPreview` blocks"}
]

## Python

```python
import praisonaiui as aiui

aiui.text("PraisonAIUI blocks adapt automatically to light and dark themes.")
aiui.caption("Synced 12 seconds ago")
aiui.markdown_text("### Release Highlights\n- **Zero-code YAML** parity\n- Live previews")
```

## YAML

```yaml
- type: text
  content: "PraisonAIUI blocks adapt automatically to light and dark themes."
- type: caption
  text: "Synced 12 seconds ago"
- type: markdown_text
  content: |
    ### Release Highlights
    - **Zero-code YAML** parity
```

## Props

| Component | Parameter | Description |
|---|---|---|
| `text` | `content` | Plain escaped text paragraph. |
| `caption` | `text` | Small muted secondary text. |
| `markdown_text` | `content`, `toc`, `title` | Sanitized Markdown renderer; set `toc=True` for an interactive table of contents. |

## Related pages

- [Media, Markdown & Content Components](https://ui.praison.ai/docs/components/media-and-content.md)
- [Gallery](https://ui.praison.ai/docs/components/gallery.md)
- [Doc Viewer](https://ui.praison.ai/docs/components/doc-viewer.md)
