Skip to content

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

फंक्शन: buildIconResolver() ​

buildIconResolver(options?): IconResolver

बीटा

आईकन-रिज़ॉल्वर चेन बनाएं: पहले प्लगइन rehype रिज़ॉल्वर, फिर स्पष्ट resolvers, फिर the built-in @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