UNPKG

teleform

Version:

Format Telegram messages, escape special characters, switch formatting styles, convert special entities to formatted text and vice versa, form Telegram links, use Unicode symbols.

33 lines (32 loc) 1.57 kB
export class html extends format { static _to_escape: { '&': string; '<': string; '>': string; }; static _regexp: RegExp; static to_mdv2(string: any): any; static to_md(string: any): any; static to_mdv1(string: any): any; static em(string: any, escape?: boolean): string; static ins(string: any, escape?: boolean): string; static del(string: any, escape?: boolean): string; static bold(string: any, escape?: boolean): string; static strong(string: any, escape?: boolean): string; static italic(string: any, escape?: boolean): string; static emphasis(string: any, escape?: boolean): string; static underline(string: any, escape?: boolean): string; static inserted(string: any, escape?: boolean): string; static strikethrough(string: any, escape?: boolean): string; static strike(string: any, escape?: boolean): string; static deleted(string: any, escape?: boolean): string; static spoiler(string: any, escape?: boolean): string; static telegram_spoiler(string: any, escape?: boolean): string; static text_link(string: any, url: any, escape?: boolean): string; static text_mention(string: any, uid: any, escape?: boolean): string; static custom_emoji(string: any, eid: any, escape?: boolean): string; static code(string: any, escape?: boolean): string; static pre(string: any, language?: null, escape?: boolean): string; static blockquote(string: any, expandable?: boolean, escape?: boolean): string; } import { format } from './format.js';