telegram-format

Format Telegram message texts with Markdown or HTML

MIT License

Downloads
3.1K
Stars
46

Bot releases are hidden (Show)

telegram-format -

Published by EdJoPaTo almost 3 years ago

  • feat: add support for spoiler tag fd89b59
  • fix(markdownv2): escape ) in urls 7cea539
  • chore(npm): drop support for Node.js 10 cd9369c

https://github.com/EdJoPaTo/telegram-format/compare/v2.0.2...v2.1.0

telegram-format -

Published by EdJoPaTo over 3 years ago

  • fix: Markdownv2 character \ is not escaped (#10) de6218b
    thanks to @iamel89 for providing the fix!

https://github.com/EdJoPaTo/telegram-format/compare/v2.0.1...v2.0.2

telegram-format -

Published by EdJoPaTo over 4 years ago

  • fix(MarkdownV2): escape - in escape regex (#1) 7a39701

https://github.com/EdJoPaTo/telegram-format/compare/v2.0.0...v2.0.1

telegram-format -

Published by EdJoPaTo over 4 years ago

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

telegram-format -

Published by EdJoPaTo almost 5 years ago

  • fix: escape monospace bad letters 23e4d42
  • fix(markdown): replace not only first bad char fc02923

https://github.com/EdJoPaTo/telegram-format/compare/v1.2.0...v1.2.1

telegram-format -

Published by EdJoPaTo almost 5 years ago

  • feat: add monospace 465f08a
  • feat: add userMention 782c957

https://github.com/EdJoPaTo/telegram-format/compare/v1.1.0...v1.2.0

telegram-format -

Published by EdJoPaTo about 5 years ago

telegram-format -

Published by EdJoPaTo about 5 years ago

Initial release