rehype-custom-component
Version:
Rehype plugin to transform custom components into to handle with React
10 lines (7 loc) • 300 B
TypeScript
import { Root } from 'hast';
interface CustomComponentOptions {
tagName?: string;
matchName?: string;
}
declare function rehypeCustomComponent({ tagName, matchName, }?: CustomComponentOptions): (tree: Root) => void;
export { type CustomComponentOptions, rehypeCustomComponent as default };