We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63aae92 + d57daa6 commit 5aa278cCopy full SHA for 5aa278c
test.ts
@@ -41,6 +41,21 @@ Deno.test("URL entity inside bold must stringify to HTML correctly", () => {
41
}),
42
'<b>👉 Link :- </b><a href="https://example.com?x&y"><b>https://example.com?x&y</b></a>',
43
);
44
+
45
+ assertEquals(
46
+ toHTML({
47
+ text: "👍",
48
+ entities: [
49
+ {
50
+ type: "custom_emoji",
51
+ offset: 0,
52
+ length: "👍".length,
53
+ custom_emoji_id: "5368324170671202286",
54
+ },
55
+ ],
56
+ }),
57
+ '<tg-emoji emoji-id="5368324170671202286">👍</tg-emoji>',
58
+ );
59
});
60
61
Deno.test("URL entity inside bold must stringify to Markdown correctly", () => {
0 commit comments