Skip to content

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

Függvény: InstuiMarkdown() ​

InstuiMarkdown(props): ReactNode

Béta

Markdown megjelenítése Instructure UI elemleképezésekkel és pantoken ikon/szín tokenekkel.

Paraméterek ​

props ​

InstuiMarkdownProps

InstuiMarkdownProps.

Visszatérési érték ​

ReactNode

Példák ​

Basic

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

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

Márkaikon-okat használva egy beépülőmodul segítségével

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