Skip to main content
Markdown(content: string): Component;
content
string
required
A markdown string to render with full document formatting. Supports headings, paragraphs, lists, code blocks, links, and other standard markdown syntax.

Support

Usage

Basic markdown

Markdown("# Welcome\n\nThis is a **paragraph** with formatting.")

Rich document

Markdown(`## Features

- **Fast** rendering
- *Easy* to use
- Supports \`inline code\`

### Code Example

\`\`\`
const x = 42;
\`\`\`
`)

With modifiers

Markdown("# Title\n\nSome content here.")
    .padding(16)
    .frame({ maxWidth: 600 })

Notes

  • Use Markdown for full document formatting with headings, lists, and code blocks.
  • Use Text({ markdown: "..." }) for inline formatting only (bold, italic, links within a single text run).
  • Markdown is currently web-only. For cross-platform text with inline formatting, use Text({ markdown }).

See Also

  • Text — inline text display with optional markdown