Skip to content

pantoken / renderers/react-markdown/src / InstuiMarkdown

फंक्शन: InstuiMarkdown()

InstuiMarkdown(props): ReactNode

बीटा

Markdown को Instructure UI तत्व मैपिंग और pantoken आइकन/रंग टोकनों के साथ रेंडर करें।

पैरामीटर

props

InstuiMarkdownProps

InstuiMarkdownProps.

वापसी

ReactNode

उदाहरण

Basic

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

<InstuiMarkdown>{"Go :arrow-left: back. Brand is #03893D.\n\n> [!TIP]\n> Helpful."}</InstuiMarkdown>;

प्लगइन के माध्यम से ब्रांड आइकन के साथ

tsx
import { InstuiMarkdown } from "@pantoken/react-markdown";
import { simpleIcons } from "@pantoken/plugin-simple-icons";
import * as registry from "simple-icons";

<InstuiMarkdown renderOptions={{ icons: { plugins: [simpleIcons({ registry })] } }}>
  {"Star us on :github:"}
</InstuiMarkdown>;