summaryrefslogtreecommitdiffstats
path: root/test/plugins/replace_highlight
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2015-09-14 12:05:51 +0200
committerSamy Pesse <samypesse@gmail.com>2015-09-14 12:05:51 +0200
commitfe604733debe42a287f3c44705e16d9d0ec85908 (patch)
tree6e500ed55e65a6f6e5991913f11850d17c8ed721 /test/plugins/replace_highlight
parentda22f9f39f34d38a488c72ddc81d5cb5bdb97e59 (diff)
downloadgitbook-fe604733debe42a287f3c44705e16d9d0ec85908.zip
gitbook-fe604733debe42a287f3c44705e16d9d0ec85908.tar.gz
gitbook-fe604733debe42a287f3c44705e16d9d0ec85908.tar.bz2
Change name of highlight test plugin
Diffstat (limited to 'test/plugins/replace_highlight')
-rw-r--r--test/plugins/replace_highlight/index.js11
-rw-r--r--test/plugins/replace_highlight/package.json9
2 files changed, 20 insertions, 0 deletions
diff --git a/test/plugins/replace_highlight/index.js b/test/plugins/replace_highlight/index.js
new file mode 100644
index 0000000..25f9642
--- /dev/null
+++ b/test/plugins/replace_highlight/index.js
@@ -0,0 +1,11 @@
+module.exports = {
+ blocks: {
+ "code": {
+ process: function(blk) {
+ var lang = blk.kwargs.language || 'code';
+
+ return lang+"_"+blk.body+"_"+lang;
+ }
+ }
+ }
+}; \ No newline at end of file
diff --git a/test/plugins/replace_highlight/package.json b/test/plugins/replace_highlight/package.json
new file mode 100644
index 0000000..72d1033
--- /dev/null
+++ b/test/plugins/replace_highlight/package.json
@@ -0,0 +1,9 @@
+{
+ "name": "gitbook-plugin-replace_highlight",
+ "description": "Test replacing default code highlighter",
+ "main": "index.js",
+ "version": "0.0.1",
+ "engines": {
+ "gitbook": "*"
+ }
+} \ No newline at end of file