Creation:2026-01-21Last update:2026-01-21
将此文档参考到您的 AI 助手ChatGPTClaudeDeepSeekGoogle AI modeGeminiPerplexityMistralGrok
使用您最喜欢的AI助手总结文档,并引用此页面和AI提供商
版本历史
- "初始化文档"v7.5.142026/1/21
此页面的内容已使用 AI 翻译。
查看英文原文的最新版本Edit this doc
If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy
Copy doc Markdown to clipboard
MarkdownRenderer 组件文档
MarkdownRenderer 组件使用自定义组件渲染 Markdown 内容。
使用方法
tsx
复制代码
复制代码到剪贴板
import { MarkdownRenderer } from "react-intlayer/markdown";const MyComponent = () => ( <MarkdownRenderer># My Title My content</MarkdownRenderer>);属性(Props)
显示表格的所有内容
在弹窗中打开表格以清晰地查看所有数据
| Prop | Type | 描述 |
|---|---|---|
children | string | 要渲染的 Markdown 内容。 |
components | Overrides | 用于为特定 Markdown 元素指定自定义组件的映射。 |
options | MarkdownOptions | Markdown 渲染器的附加选项。 |