hexo-util
Advanced tools
Comparing version 0.5.3 to 0.6.0
@@ -20,2 +20,3 @@ 'use strict'; | ||
var caption = options.caption; | ||
var mark = options.hasOwnProperty('mark') ? options.mark : []; | ||
var tab = options.tab; | ||
@@ -35,5 +36,6 @@ var data = highlight(str, options); | ||
if (tab) line = replaceTabs(line, tab); | ||
numbers += '<span class="line">' + (firstLine + i) + '</span><br>'; | ||
content += '<span class="line">' + line + '</span><br>'; | ||
numbers += '<div class="line">' + (firstLine + i) + '</div>'; | ||
content += '<div class="line'; | ||
content += (mark.indexOf(firstLine + i) !== -1) ? ' marked' : ''; | ||
content += '">' + line + '</div>'; | ||
} | ||
@@ -40,0 +42,0 @@ |
{ | ||
"name": "hexo-util", | ||
"version": "0.5.3", | ||
"version": "0.6.0", | ||
"description": "Utilities for Hexo.", | ||
@@ -27,16 +27,16 @@ "main": "lib/index", | ||
"devDependencies": { | ||
"chai": "^3.4.1", | ||
"eslint": "^1.10.3", | ||
"eslint-config-hexo": "^1.0.2", | ||
"istanbul": "^0.4.1", | ||
"jscs": "^2.6.0", | ||
"chai": "^3.5.0", | ||
"eslint": "^2.12.0", | ||
"eslint-config-hexo": "^1.0.3", | ||
"istanbul": "^0.4.3", | ||
"jscs": "^3.0.4", | ||
"jscs-preset-hexo": "^1.0.1", | ||
"mocha": "^2.3.4", | ||
"mocha": "^2.5.3", | ||
"rewire": "^2.5.1" | ||
}, | ||
"dependencies": { | ||
"bluebird": "^3.0.6", | ||
"camel-case": "^1.2.0", | ||
"cross-spawn": "^2.1.5", | ||
"highlight.js": "^9.0.0", | ||
"bluebird": "^3.4.0", | ||
"camel-case": "^3.0.0", | ||
"cross-spawn": "^4.0.0", | ||
"highlight.js": "^9.4.0", | ||
"html-entities": "^1.2.0", | ||
@@ -43,0 +43,0 @@ "striptags": "^2.1.1" |
31593
597
+ Addedcamel-case@3.0.0(transitive)
+ Addedcross-spawn@4.0.2(transitive)
+ Addedno-case@2.3.2(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedcamel-case@1.2.2(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcross-spawn@2.2.3(transitive)
- Removedcross-spawn-async@2.2.5(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedos-shim@0.1.3(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsentence-case@1.1.3(transitive)
- Removedspawn-sync@1.0.15(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedbluebird@^3.4.0
Updatedcamel-case@^3.0.0
Updatedcross-spawn@^4.0.0
Updatedhighlight.js@^9.4.0