Skip to content

Commit eaa0ed5

Browse files
committedApr 25, 2015
Merge pull request hexojs#1227 from hcoona/feature/disable-auto-detect-highlight
Feature hexojs#1224 disable highlight auto detect
2 parents 7cc20e4 + 789bd36 commit eaa0ed5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎lib/hexo/default_config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = {
3434
future: true,
3535
highlight: {
3636
enable: true,
37+
auto_detect: true, // Maintain consistent with previous version.
3738
line_number: true,
3839
tab_replace: '',
3940
},
@@ -51,4 +52,4 @@ module.exports = {
5152
theme: 'landscape',
5253
// Deployment
5354
deploy: {}
54-
};
55+
};

‎lib/plugins/filter/before_post_render/backtick_code_block.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function backtickCodeBlock(data){
2020
var content = arguments[4];
2121

2222
var options = {
23+
auto_detect: config.auto_detect,
2324
gutter: config.line_number,
2425
tab: config.tab_replace
2526
};
@@ -52,4 +53,4 @@ function backtickCodeBlock(data){
5253
});
5354
}
5455

55-
module.exports = backtickCodeBlock;
56+
module.exports = backtickCodeBlock;

0 commit comments

Comments
 (0)
Please sign in to comment.