mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
feat: use local assets for twemoji
This commit is contained in:
@@ -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`
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user