Skip to content

pantoken / renderers/react-markdown/src / createInstuiMarkdownComponents

Ֆունկցիա: createInstuiMarkdownComponents()

createInstuiMarkdownComponents(options?): Components

Բետա

Կազմել react-markdown բաղադրիչ քարտեզ render ընտրանքների հավաքածուի համար։

Պարամետրեր

options?

InstuiMarkdownRenderOptions = {}

InstuiMarkdownRenderOptions.

Վերադարձվող արժեք

Components

React-markdown components քարտեզ Instructure UI-ի հետևակցությամբ։

Օրինակ

Քարտեզը ուղղակիորեն անցեք react-markdown-ին

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

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