ts-markdown-builder
Version:
Elegant markdown builder with minimal bundle size.
11 lines (10 loc) • 430 B
TypeScript
/**
* Join blocks of text into a single markdown document (string).
*
* @param blocks - The blocks of text to join.
* @returns Markdown document string.
*/
export declare function joinBlocks(blocks: string | readonly string[]): string;
export declare function prefixLines(text: string, prefix: string): string;
export declare function escape(text: string): string;
export declare function maxBackticks(text: string): number;