Skip to content

pantoken-root / renderers/react-markdown/src / createInstuiMarkdownComponents

Fonksiyon: createInstuiMarkdownComponents() ​

createInstuiMarkdownComponents(options?): Components

Beta

Bir dizi render seçeneği için react-markdown bileşen haritasını oluştur.

Parametreler ​

options? ​

InstuiMarkdownRenderOptions = {}

InstuiMarkdownRenderOptions.

Döndürür ​

Components

Instructure UI tarafından desteklenen bir react-markdown components haritası.

Örnek ​

Haritayı doğrudan react-markdown'e geçir

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

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