cli-highlight
Advanced tools
Comparing version 2.1.10 to 2.1.11
@@ -16,9 +16,2 @@ import { Theme } from './theme'; | ||
/** | ||
* The continuation is an optional mode stack representing unfinished parsing. When present, | ||
* the function will restart parsing from this state instead of initializing a new one. | ||
* | ||
* See http://highlightjs.readthedocs.io/en/latest/api.html | ||
*/ | ||
continuation?: any; | ||
/** | ||
* Optional array of language names and aliases restricting detection to only those languages. | ||
@@ -25,0 +18,0 @@ */ |
@@ -87,3 +87,3 @@ "use strict"; | ||
if (options.language) { | ||
html = hljs.highlight(options.language, code, options.ignoreIllegals, options.continuation).value; | ||
html = hljs.highlight(code, { language: options.language, ignoreIllegals: options.ignoreIllegals }).value; | ||
} | ||
@@ -90,0 +90,0 @@ else { |
{ | ||
"name": "cli-highlight", | ||
"version": "2.1.10", | ||
"version": "2.1.11", | ||
"description": "Syntax highlighting in your terminal", | ||
@@ -102,3 +102,3 @@ "main": "dist/index.js", | ||
"chalk": "^4.0.0", | ||
"highlight.js": "^10.0.0", | ||
"highlight.js": "^10.7.1", | ||
"mz": "^2.4.0", | ||
@@ -115,3 +115,2 @@ "parse5": "^5.1.1", | ||
"@sourcegraph/prettierrc": "^3.0.3", | ||
"@types/highlight.js": "^9.12.1", | ||
"@types/jest": "^24.0.9", | ||
@@ -118,0 +117,0 @@ "@types/mz": "0.0.32", |
Sorry, the diff of this file is not supported yet
19
42742
862
Updatedhighlight.js@^10.7.1