Skip to content

pantoken / renderers/react-markdown/src / InstuiMarkdown

Fungsi: InstuiMarkdown()

InstuiMarkdown(props): ReactNode

Beta

Merender Markdown dengan pemetaan elemen Instructure UI dan token ikon/warna pantoken.

Parameter

props

InstuiMarkdownProps

InstuiMarkdownProps.

Mengembalikan

ReactNode

Contoh

Basic

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

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

Dengan ikon merek melalui plugin

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>;