link-styler
Version:
JavaScript package that simplifies the task of identifying links within text and applying custom styling by automatically replacing them with tags.
46 lines (45 loc) • 1.03 kB
TypeScript
export interface Setting {
bg: boolean;
bgColor: string;
textColor: string;
borderRadius: number;
showIcon: boolean;
iconColor: boolean;
underline: boolean;
link: LinkSetting;
atsign: AtsignSetting;
hashTag: hashTagSetting;
}
interface LinkSetting {
pathnameLengthLimit: number;
bg?: boolean;
bgColor?: string;
textColor?: string;
borderRadius?: number;
showIcon?: boolean;
iconColor?: boolean;
underline?: boolean;
}
interface AtsignSetting {
enable: boolean;
path: string;
bg?: boolean;
bgColor?: string;
textColor?: string;
borderRadius?: number;
showIcon?: boolean;
underline?: boolean;
removeAtsignChar?: boolean;
}
interface hashTagSetting {
enable: boolean;
path: string;
bg?: boolean;
bgColor?: string;
textColor?: string;
borderRadius?: number;
showIcon?: boolean;
underline?: boolean;
removeHashTagChar?: boolean;
}
export {};