UNPKG

telegram-markdown-v2

Version:

Convert markdown into Telegram Markdown V2 format with TypeScript support

11 lines (10 loc) 603 B
import type { TextType, UnsupportedTagsStrategy } from './types.js'; export declare function wrap(string: string, ...wrappers: string[]): string; export declare function isURL(string: string): boolean; /** * Escapes symbols according to Telegram Markdown V2 specification. * Any character with code between 1 and 126 inclusively can be escaped anywhere * with a preceding '\' character. */ export declare function escapeSymbols(text: string | null | undefined, textType?: TextType): string; export declare function processUnsupportedTags(content: string, strategy: UnsupportedTagsStrategy): string;