Skip to content

pantoken / renderers/react-markdown/src / InstuiMarkdown

Funktio: InstuiMarkdown()

InstuiMarkdown(props): ReactNode

Beta

Renderöi Markdown Instructure UI -elementtikartoitusten ja pantoken-kuvakkeiden/-väritunnisteiden avulla.

Parametrit

props

InstuiMarkdownProps

InstuiMarkdownProps.

Palauttaa

ReactNode

Esimerkit

Basic

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

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

Brändi-ikonit laajennuksen avulla

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