diff options
author | Samy Pesse <samypesse@gmail.com> | 2015-09-12 18:21:35 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2015-09-12 18:21:35 +0200 |
commit | 82a6ee3875bca2b068d76ccc894c4313d1006b77 (patch) | |
tree | 0ad9e753629774333ec163f21234fc770c10a541 /test/plugins/highlight | |
parent | 3bf592f870eb24d1b4753fa538bad2cbfaa98a24 (diff) | |
download | gitbook-82a6ee3875bca2b068d76ccc894c4313d1006b77.zip gitbook-82a6ee3875bca2b068d76ccc894c4313d1006b77.tar.gz gitbook-82a6ee3875bca2b068d76ccc894c4313d1006b77.tar.bz2 |
Add test for replacing highlighting
Diffstat (limited to 'test/plugins/highlight')
-rw-r--r-- | test/plugins/highlight/index.js | 9 | ||||
-rw-r--r-- | test/plugins/highlight/package.json | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/plugins/highlight/index.js b/test/plugins/highlight/index.js new file mode 100644 index 0000000..01202f2 --- /dev/null +++ b/test/plugins/highlight/index.js @@ -0,0 +1,9 @@ +module.exports = { + blocks: { + "code": { + process: function(blk) { + return "code_"+blk.body+"_code"; + } + } + } +};
\ No newline at end of file diff --git a/test/plugins/highlight/package.json b/test/plugins/highlight/package.json new file mode 100644 index 0000000..6b69488 --- /dev/null +++ b/test/plugins/highlight/package.json @@ -0,0 +1,9 @@ +{ + "name": "gitbook-plugin-highlight", + "description": "Highlight coe blocks", + "main": "index.js", + "version": "0.0.1", + "engines": { + "gitbook": "*" + } +}
\ No newline at end of file |