@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
20 lines • 658 B
text/typescript
//#region src/Markdown/plugins/remarkColor.d.ts
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
*/
declare const remarkColor: (options?: RemarkColorOptions) => (tree: any) => void;
//#endregion
export { remarkColor };
//# sourceMappingURL=remarkColor.d.mts.map