gitbook-plugin-advanced-emoji
Advanced tools
Comparing version 0.0.4 to 0.0.5
10
index.js
module.exports = { | ||
website: { | ||
assets: "./book", | ||
js: [ | ||
"book.js" | ||
], | ||
assets: "./node_modules/emojify.js/dist/images/basic/", | ||
js: [ ], | ||
css: [ | ||
"book.css" | ||
"./book/plugin.css" | ||
] | ||
@@ -16,4 +14,4 @@ }, | ||
"page:before": function(page) { | ||
/*page.content = page.content.replace(/:white_check_mark:/g, "FOO");*/ | ||
var emojify = require("emojify.js"); | ||
emojify.setConfig({img_dir : '/gitbook/plugins/gitbook-plugin-advanced-emoji/'}); | ||
page.content = emojify.replace(page.content); | ||
@@ -20,0 +18,0 @@ return page; |
@@ -5,3 +5,3 @@ { | ||
"main": "index.js", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"engines": { | ||
@@ -8,0 +8,0 @@ "gitbook": ">=2.5.0" |
Sorry, the diff of this file is not supported yet
13046
24