Format Telegram message texts with Markdown or HTML
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 11 months ago
Published by github-actions[bot] 11 months ago
This release mainly provides a native TypeScript module for Deno! Check out https://deno.land/x/telegram_format.
BREAKING CHANGE: This release requires ES modules (no more CommonJS) and Node.js 14 or higher.
https://github.com/EdJoPaTo/telegram-format/compare/v2.0.2...v2.1.0
\
is not escaped (#10) de6218bhttps://github.com/EdJoPaTo/telegram-format/compare/v2.0.1...v2.0.2
-
in escape regex (#1) 7a39701https://github.com/EdJoPaTo/telegram-format/compare/v2.0.0...v2.0.1
Add support for MarkdownV2 (8642303), strikethrough and underline (23cef46) and nested formatting (756ba07)
BREAKING CHANGE: html functions do not escape on their own anymore.
Use format.bold(format.escape(input)
instead of format.bold(input)
whenever you need.
This way you can nest functions like format.bold(format.italic(input))
without escaping the format of the inner one making it useless.
https://github.com/EdJoPaTo/telegram-format/compare/v1.2.1...v2.0.0
https://github.com/EdJoPaTo/telegram-format/compare/v1.2.0...v1.2.1
https://github.com/EdJoPaTo/telegram-format/compare/v1.1.0...v1.2.0
https://github.com/EdJoPaTo/telegram-format/compare/v1.0.0...v1.1.0