/** * Telegram message format utilities. * * Converts standard Markdown to Telegram-compatible HTML. * Reference: https://core.telegram.org/bots/api#html-style */ /** * Convert standard Markdown text to Telegram-compatible HTML. * * Key conversions: * - `**bold**` → `bold` * - `*italic*` / `_italic_` → `italic` * - `~~strike~~` → `strike` * - `` `code` `` → `code` * - ` ```lang\n...\n``` ` → `
...
` * - `[text](url)` → `text` * - `# Heading` → `Heading` * - Escapes `&`, `<`, `>` in text content */ export declare function markdownToHtml(markdown: string): string; //# sourceMappingURL=telegram-format.d.ts.map