Skip to content

Releases: telegraf/entity

v0.7.0

Choose a tag to compare

@MKRhere MKRhere released this 14 Aug 09:59
5ec6c5f

Added parse_html and parse_markdown, both ported from tdlib.

v0.6.0

Choose a tag to compare

@MKRhere MKRhere released this 20 Feb 04:20
0112bcf

Support for expandable blockquotes and custom emoji in both HTML and MarkdownV2.

v0.5.0

Choose a tag to compare

@MKRhere MKRhere released this 15 Feb 06:54
346ecee
  • Support for Bot API 7.0 blockquote entities
  • Sorting entities based on priorities as Bot API does internally (#5 thanks @dcdunkan)

v0.4.0

Choose a tag to compare

@MKRhere MKRhere released this 19 Sep 21:57
85c16ad

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

Choose a tag to compare

@MKRhere MKRhere released this 23 Mar 20:22
960f65f
chore: fix package.json urls

v0.2.1

Choose a tag to compare

@MKRhere MKRhere released this 23 Mar 20:15
3205a98
ci: we already ran prepare

v0.2.0

Choose a tag to compare

@MKRhere MKRhere released this 23 Mar 20:13
e4a47e5

Publish to npm from .npm/

v0.1.1

Choose a tag to compare

@MKRhere MKRhere released this 23 Mar 20:09
636745f

No changes, Deno/x release.

v0.1.0

Choose a tag to compare

@MKRhere MKRhere released this 23 Mar 20:06
636745f
ci: spoiler: it wasn't