Skip to content

pantoken / renderers/react-markdown/src / InstuiMarkdown

함수: InstuiMarkdown()

InstuiMarkdown(props): ReactNode

베타

Instructure UI 요소 매핑과 pantoken 아이콘/색상 토큰으로 Markdown을 렌더링합니다.

매개변수

props

InstuiMarkdownProps

InstuiMarkdownProps.

반환값

ReactNode

예제들

Basic

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

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

플러그인을 통해 브랜드 아이콘 사용

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