Added no-emoji

This commit is contained in:
CRIMX 2018-01-05 14:30:59 +08:00
parent fa9253d9ab
commit e52ceb8b18
4 changed files with 9403 additions and 9383 deletions

View file

@ -81,6 +81,7 @@ if (options.enable !== false) {
})
hexo.extend.filter.register('before_post_render', function (data) {
if (data['no-emoji']) { return data }
data.content = data.content.replace(/:(\w+):/ig, function (match, p1) {
if (emojis[p1]) {
return getRender(p1);