-
I recently updated to v7 and have problems to edit the config for the I don't want to replace the already existing utf8 emojis in my markdown string with svg from an external source. But I would like to replace :emoji_code: with the corresponding utf8 emoji. Is there a way to change this out of the box? Or how is it possible to change the callback for twemoji to replace it with my own (local) implementation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I finally figured out how to change something of the config // insinde config((ctx => ...))
ctx.set(emojiConfig.key, {
twemojiOptions: {
callback: (icon, options) => icon
}
}); This works because it now uses localhost (or whereever your code runs) as base where it can't find the icon and returns a |
Beta Was this translation helpful? Give feedback.
I finally figured out how to change something of the config
This works because it now uses localhost (or whereever your code runs) as base where it can't find the icon and returns a
404
. But all existing emojis are still there and any new added emoji (:tada:
) also works!But it would be nicer to completly disable twemoji. I'll open an issue for that