Comparing version 0.1.1 to 0.1.2
@@ -1,7 +0,3 @@ | ||
var hljs = require('highlight.js'); | ||
var hljs; | ||
hljs.configure({ | ||
classPrefix: '' | ||
}); | ||
module.exports = function(str, options){ | ||
@@ -11,2 +7,4 @@ if (typeof str !== 'string') throw new TypeError('str must be a string!'); | ||
if (!hljs) initHighlight(); | ||
var gutter = options.hasOwnProperty('gutter') ? options.gutter : true; | ||
@@ -54,2 +52,10 @@ var wrap = options.hasOwnProperty('wrap') ? options.wrap : true; | ||
function initHighlight(){ | ||
hljs = require('highlight.js'); | ||
hljs.configure({ | ||
classPrefix: '' | ||
}); | ||
} | ||
function replaceTabs(str, tab){ | ||
@@ -56,0 +62,0 @@ return str.replace(/^\t+/, function(match){ |
{ | ||
"name": "hexo-util", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Utilities for Hexo.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25545
414