Skip to content

Releases: telegraf/entity

v0.5.0

15 Feb 06:54
346ecee
Compare
Choose a tag to compare
  • Support for Bot API 7.0 blockquote entities
  • Sorting entities based on priorities as Bot API does internally (#5 thanks @dcdunkan)

v0.4.0

19 Sep 21:57
85c16ad
Compare
Choose a tag to compare

This is a full rewrite of the core algorithm. We now construct the entities into a tree, and then serialise recursively. The simple case remains unchanged:

toHTML(ctx.message); //-> html string
toMarkdownV2(ctx.message); //-> Markdown string

There are some changes to the advanced API:

  • serialiseWith now takes two arguments, serialiser and escaper.
  • Serialiser and Escaper types are exported, for more convenience if you want to implement your own.
  • Serialiser now takes (match: string, node: Node); see types for more details.

v0.3.0

23 Mar 20:22
960f65f
Compare
Choose a tag to compare
chore: fix package.json urls

v0.2.1

23 Mar 20:15
3205a98
Compare
Choose a tag to compare
ci: we already ran prepare

v0.2.0

23 Mar 20:13
e4a47e5
Compare
Choose a tag to compare

Publish to npm from .npm/

v0.1.1

23 Mar 20:09
636745f
Compare
Choose a tag to compare

No changes, Deno/x release.

v0.1.0

23 Mar 20:06
636745f
Compare
Choose a tag to compare
ci: spoiler: it wasn't