This commit is contained in:
parent
dfe7618530
commit
6b98656a41
1 changed files with 5 additions and 0 deletions
|
@ -103,6 +103,11 @@ export const cleanCodeBlock = (text: string) => {
|
||||||
return text;
|
return text;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the emoji URL as png, only works with one-composed emoji code
|
||||||
|
* @param emoji Emoji
|
||||||
|
* @returns URL of emoji as png
|
||||||
|
*/
|
||||||
export const emojiPng = (emoji: string) =>
|
export const emojiPng = (emoji: string) =>
|
||||||
`https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/72x72/${emoji
|
`https://cdn.jsdelivr.net/gh/twitter/twemoji/assets/72x72/${emoji
|
||||||
.codePointAt(0)
|
.codePointAt(0)
|
||||||
|
|
Loading…
Reference in a new issue