Skip to content

pantoken / renderers/react-markdown/src / createInstuiMarkdownComponents

함수: createInstuiMarkdownComponents()

createInstuiMarkdownComponents(options?): Components

베타

렌더 옵션 세트에 대한 react-markdown 컴포넌트 맵을 생성합니다.

매개변수

options?

InstuiMarkdownRenderOptions = {}

InstuiMarkdownRenderOptions.

반환값

Components

Instructure UI가 지원하는 react-markdown components 맵입니다.

예제

맵을 react-markdown에 바로 전달하세요

tsx
import Markdown from "react-markdown";
import { createInstuiMarkdownComponents } from "@pantoken/react-markdown";

const components = createInstuiMarkdownComponents({ tableCaption: "Grades" });
<Markdown components={components}># Report</Markdown>;