gitbook-plugin-advanced-emoji
Advanced tools
Comparing version
10
index.js
@@ -15,7 +15,9 @@ module.exports = { | ||
hooks: { | ||
"page": function(page) { | ||
page.content = page.content.replace(":white_check_mark:", "FOO"); | ||
return page; | ||
} | ||
"page:before": function(page) { | ||
/*page.content = page.content.replace(/:white_check_mark:/g, "FOO");*/ | ||
var emojify = require("emojify.js"); | ||
page.content = emojify.replace(page.content); | ||
return page; | ||
} | ||
} | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"main": "index.js", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"engines": { | ||
@@ -27,3 +27,6 @@ "gitbook": ">=2.5.0" | ||
"url": "https://github.com/codeclou/gitbook-plugin-advanced-emoji/issues" | ||
}, | ||
"dependencies": { | ||
"emojify.js": "^1.1.0" | ||
} | ||
} |
12902
1.51%20
11.11%1
Infinity%+ Added
+ Added