Creation:2026-01-21Last update:2026-01-21

    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 渲染器的附加选项。