Skip to content

pantoken / renderers/react-markdown/src / buildIconResolver

함수: buildIconResolver()

buildIconResolver(options?): IconResolver

베타

아이콘 리졸버 체인을 구성합니다: 먼저 플러그인 rehype 리졸버들, 그 다음 명시적인 resolvers, 그 다음 내장된 @pantoken/icons 세트. 먼저 일치하는 항목이 우선합니다.

매개변수

options?

InstuiMarkdownRenderOptions

반환값

IconResolver

예제

ts
import { buildIconResolver } from "@pantoken/react-markdown";

const resolve = buildIconResolver();
resolve("arrow-left"); // an IconEntry from the built-in set, or undefined