Added no-emoji
This commit is contained in:
parent
fa9253d9ab
commit
e52ceb8b18
4 changed files with 9403 additions and 9383 deletions
1
index.js
1
index.js
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue