Skip to content

pantoken / renderers/react-markdown/src / createInstuiMarkdownComponents

Συνάρτηση: createInstuiMarkdownComponents()

createInstuiMarkdownComponents(options?): Components

Βήτα

Δημιουργήστε τον χάρτη συστατικών react-markdown για ένα σύνολο επιλογών απόδοσης.

Παράμετροι

options?

InstuiMarkdownRenderOptions = {}

InstuiMarkdownRenderOptions.

Επιστρέφει

Components

Ένας χάρτης components για το react-markdown, υποστηριζόμενος από το 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>;