@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
18 lines (17 loc) • 557 B
TypeScript
interface RemarkColorOptions {
/**
* 自定义颜色验证函数
*/
colorValidator?: (colorString: string) => boolean;
}
/**
* Remark plugin to handle color syntax in markdown code spans
* Supports GitHub-style color visualization for HEX, RGB, and HSL colors
*
* @example
* `#FF0000` -> renders with red color preview
* `rgb(255, 0, 0)` -> renders with red color preview
* `hsl(0, 100%, 50%)` -> renders with red color preview
*/
export declare const remarkColor: (options?: RemarkColorOptions) => (tree: any) => void;
export {};