Skip to content

pantoken / renderers/react-markdown/src / createInstuiMarkdownComponents

Fonksyon: createInstuiMarkdownComponents()

createInstuiMarkdownComponents(options?): Components

Beta

Bati map konpozan react-markdown pou yon seri opsyon rann.

Paramèt

options?

InstuiMarkdownRenderOptions = {}

InstuiMarkdownRenderOptions.

Retounen

Components

Yon react-markdown components map ki sipòte pa Instructure UI.

Egzanp

Pase map la dirèkteman bay react-markdown

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

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