Component Feature
For displaying text content in Markdown format, it supports commonly used Markdown syntax and can enable streaming to achieve real-time content updates.
Basic Usage
Set the Markdown text via value, and the component will parse the content and render it as formatted text.
<Markdown value="# Heading\\n\\nThis is a piece of **Markdown** text." />
Attribute Description
|
value ★ | string
| Markdown text content | - |
streaming | boolean
| Enable streaming transfer mode | false
|
Note:
★ Marked with required attribute.
Supported Markdown Syntax
heading (# ~ ######)
bold (**text**)
italic (*text*)
list (ordered/unordered)
link ([text](url))
code block (`code`)
quote (> text)
separator (---)
Streaming Transmission Description
When streaming is true:
Support incremental update content.
Suitable for scenarios such as AI response generated in real-time.
Set streaming to false after content generation.