marked-alert
Version:
A marked extension to support GFM alert
15 lines (14 loc) • 483 B
TypeScript
import type { AlertVariantItem } from './types.js';
/**
* Resolves the variants configuration, combining the provided variants with
* the default variants.
*/
export declare function resolveVariants(variants: AlertVariantItem[]): AlertVariantItem[];
/**
* Returns regex pattern to match alert syntax.
*/
export declare function createSyntaxPattern(type: string): string;
/**
* Capitalizes the first letter of a string.
*/
export declare function ucfirst(str: string): string;