summaryrefslogtreecommitdiffstats
path: root/test/plugins/replace_highlight/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-09-14 18:26:26 +0200
committerSamy Pessé <samypesse@gmail.com>2015-09-14 18:26:26 +0200
commitafd5465a6129e96bce62dab26a4ee41e7af7365c (patch)
tree6e500ed55e65a6f6e5991913f11850d17c8ed721 /test/plugins/replace_highlight/index.js
parent3bf592f870eb24d1b4753fa538bad2cbfaa98a24 (diff)
parentfe604733debe42a287f3c44705e16d9d0ec85908 (diff)
downloadgitbook-afd5465a6129e96bce62dab26a4ee41e7af7365c.zip
gitbook-afd5465a6129e96bce62dab26a4ee41e7af7365c.tar.gz
gitbook-afd5465a6129e96bce62dab26a4ee41e7af7365c.tar.bz2
Merge pull request #928 from GitbookIO/feature/highlight_block
Code highlighting extended by plugins
Diffstat (limited to 'test/plugins/replace_highlight/index.js')
-rw-r--r--test/plugins/replace_highlight/index.js11
1 files changed, 11 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