UNPKG

telegram-markdown-v2

Version:

Convert markdown into Telegram Markdown V2 format with TypeScript support

9 lines (8 loc) 828 B
import type { Blockquote, HTML, List, ListItem, Parents, Table } from 'mdast'; import type { Info, State } from 'mdast-util-to-markdown'; import type { UnsupportedTagsStrategy } from '../types.js'; export declare function handleList(node: List, parent: Parents | undefined, state: State, info: Info): string; export declare function handleListItem(node: ListItem, parent: Parents | undefined, state: State, info: Info): string; export declare function handleBlockquote(unsupportedTagsStrategy: UnsupportedTagsStrategy): (node: Blockquote, _parent: Parents | undefined, state: State, info: Info) => string; export declare function handleHtml(unsupportedTagsStrategy: UnsupportedTagsStrategy): (node: HTML) => string; export declare function handleTable(unsupportedTagsStrategy: UnsupportedTagsStrategy): (node: Table) => string;