Skip to content

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

Mahi: InstuiMarkdown() ​

InstuiMarkdown(props): ReactNode

Beta

Whakaatu i te Markdown me ngā mapi o ngā wāhanga Instructure UI me ngā tohu ā-ata me ngā tohu tae o pantoken.

Ngā Tawhā ​

props ​

InstuiMarkdownProps

InstuiMarkdownProps.

Whakahokia ​

ReactNode

Ngā tauira ​

Basic

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

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

Me ngā tohu waitohu mā te mono

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