feat: use local assets for twemoji

This commit is contained in:
NGPixel
2020-03-15 22:34:42 -04:00
parent 2e804a467e
commit 2810f7b5af
3247 changed files with 3263 additions and 1 deletions

View File

@@ -10,7 +10,11 @@ module.exports = {
md.use(mdEmoji)
md.renderer.rules.emoji = (token, idx) => {
return twemoji.parse(token[idx].content)
return twemoji.parse(token[idx].content, {
callback (icon, opts) {
return `/svg/twemoji/${icon}.svg`
}
})
}
}
}