Markdown nativelite
Rendered GitHub-flavoured markdown, for prose.
Preview
Loading the renderer…
createSurface + updateComponents, A2UI v0.9.
json
[
{
"version": "v0.9",
"createSurface": {
"surfaceId": "preview",
"catalogId": "https://ui.exponential.at/catalogs/core/v1"
}
},
{
"version": "v0.9",
"updateComponents": {
"surfaceId": "preview",
"components": [
{
"id": "root",
"component": "Stack",
"direction": "vertical",
"align": "stretch",
"children": [
"example"
]
},
{
"id": "example",
"component": "Markdown",
"text": "**Bold** and a list:\n\n- one\n- two"
}
]
}
}
]This surface through a MemoryTransport. Install and transports: React guide.
This surface through a MemoryTransport. Install and transports: SwiftUI guide.
This surface through a MemoryTransport. Install and transports: Compose guide.
This surface through a MemoryTransport. Install and transports: gpui guide.
Platforms




View exponential-ui-markdown, painted by each native renderer.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
textrequiredbind | markdown | – | The GFM source. |
lines | number | – | Truncates the rendered body to this many lines with an ellipsis. |
style | style | – | Extra Box styles for the markdown box. |
Events and slots
No events, no slots. Children: none.
Accessibility
- Role
document- Semantics
- document fragment (headings, lists, links, tables keep their roles)
| Keys | Action |
|---|---|
| – | Tab moves through the links |
Theming
- Recipe parts
Markdown/rootMarkdown/paragraphMarkdown/headingMarkdown/linkMarkdown/codeMarkdown/codeBlockMarkdown/quoteMarkdown/tableMarkdown/listItem- Keyed by
:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover