Skip to content

pantoken / renderers/react-markdown/src / InstuiMarkdown

Funkcija: InstuiMarkdown()

InstuiMarkdown(props): ReactNode

Beta

Upodobi Markdown z mapiranji elementov Instructure UI ter pantoken ikonami in barvnimi tokeni.

Parametri

props

InstuiMarkdownProps

InstuiMarkdownProps.

Vrne

ReactNode

Primeri

Basic

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

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

Z blagovnimi ikonami preko vtičnika

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