Loading...
Loading...
Use this when tasks involve Markdown rendering, streaming output, custom component mapping, plugins, themes, or rich chat content display with @ant-design/x-markdown.
npx skill4agent add ant-design/x x-markdown@ant-design/x-markdown| Layer | Package Name | Responsibility |
|---|---|---|
| UI Layer | | Chat UI, Bubble, Sender, interactive components |
| Data Layer | | Provider, requests, streaming data flow, state management |
| Rendering Layer | | Markdown parsing, streaming rendering, plugins, themes, custom rendering |
⚠️is not a chat state management tool. It is responsible for rendering existing message content, not for requests or the message flow itself.x-markdown
| When you need to... | Priority Reading | Typical Outcome |
|---|---|---|
| Render Markdown with minimal configuration | CORE.md | Render basic content with |
| Render LLM streaming output | STREAMING.md | Correctly handle |
| Map tags to business components | EXTENSIONS.md | Establish stable mappings for custom tags, code blocks, and rich content components |
| Add plugins or customize themes | EXTENSIONS.md | Complete plugin import, theme class name integration, and minimal CSS overrides |
| View property details and default values | API.md | Get the complete property table for |
import { XMarkdown } from '@ant-design/x-markdown';
export default () => <XMarkdown content="# Hello" />;componentsstreaming.hasNextChunk = falseescapeRawHtmldompurifyConfigx-markdown-lightx-markdown-darkstreamStatus === 'done'| Scenario | Recommended Skill Combination | Reason |
|---|---|---|
| Rich text responses in chat | | The first three are responsible for data flow, |
| Built-in Provider + Markdown responses | | Separation of request configuration and rendering responsibilities |
| Independent Markdown pages or document views | | No chat state management required |
x-chat-providerx-requestuse-x-chatx-markdownx-markdown