Skip to main content

Component | Markdown

Render formatted markdown.

ui.markdown(`
# Welcome to Markdown Example

## Features

1. **Bold text** and *italic text*
2. [Hyperlinks](https://example.com)
3. Inline \`code\`

### Lists

- Unordered list item 1
- Unordered list item 2
- Nested item

> This is a blockquote.
`)

API reference

Function signature

ui.markdown(
markdown: string,
options: Partial<{
style: Style
}>
)

Parameters

markdown

required string
The markdown to be rendered.

properties.style

optional Style

Directly style the underlying element using CSS. See the styling guide for more details on available style properties.