@parcel/codeframe 2.0.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/src/codeframe.js +2 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/codeframe",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.2.0",
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
5
5
|
"license": "MIT",
|
6
6
|
"publishConfig": {
|
@@ -28,5 +28,5 @@
|
|
28
28
|
"devDependencies": {
|
29
29
|
"strip-ansi": "^6.0.0"
|
30
30
|
},
|
31
|
-
"gitHead": "
|
31
|
+
"gitHead": "4745cd3023f8d5a5adcf9e565d5b82d1418dc262"
|
32
32
|
}
|
package/src/codeframe.js
CHANGED
@@ -121,9 +121,8 @@ export default function codeFrame(
|
|
121
121
|
|
122
122
|
// Split input into lines and highlight syntax
|
123
123
|
let lines = code.split(NEWLINE);
|
124
|
-
let syntaxHighlightedLines = (
|
125
|
-
? highlightSyntax(code, opts.language)
|
126
|
-
: code
|
124
|
+
let syntaxHighlightedLines = (
|
125
|
+
opts.syntaxHighlighting ? highlightSyntax(code, opts.language) : code
|
127
126
|
)
|
128
127
|
.replace(TAB_REPLACE_REGEX, TAB_REPLACEMENT)
|
129
128
|
.split(NEWLINE);
|