Skip to content

Commit

Permalink
13.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simmerer committed Aug 8, 2020
1 parent d898c47 commit a69d6a2
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 32 deletions.
9 changes: 5 additions & 4 deletions demo/build/demo-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -73673,7 +73673,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

function createLine(children, lineNumber) {
var className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
return wrapLines ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
return wrapLines || className.length > 0 ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
}

var _loop = function _loop() {
Expand All @@ -73698,7 +73698,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

var _line = createLine(_children, lineNumber);

newTree.push(_line); // if it's neither the first nor the last line
newTree.push(_line); // if it's the last line
} else if (i === splitValue.length - 1) {
var stringChild = tree[index + 1] && tree[index + 1].children && tree[index + 1].children[0];

Expand All @@ -73718,7 +73718,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin
var _line2 = createLine(_children2, lineNumber, node.properties.className);

newTree.push(_line2);
} // if it's the last line
} // if it's neither the first nor the last line

} else {
var _children3 = [newChild];
Expand Down Expand Up @@ -73859,7 +73859,8 @@ function getCodeTree(_ref6) {
var preProps = useInlineStyles ? Object.assign({}, rest, {
style: Object.assign({}, defaultPreStyle, customStyle)
}) : Object.assign({}, rest, {
className: 'hljs'
className: rest.className ? "hljs ".concat(rest.className) : 'hljs',
style: Object.assign({}, customStyle)
});

if (!astGenerator) {
Expand Down
2 changes: 1 addition & 1 deletion demo/build/demo-build.js.map

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions demo/build/diff-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -73563,7 +73563,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

function createLine(children, lineNumber) {
var className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
return wrapLines ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
return wrapLines || className.length > 0 ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
}

var _loop = function _loop() {
Expand All @@ -73588,7 +73588,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

var _line = createLine(_children, lineNumber);

newTree.push(_line); // if it's neither the first nor the last line
newTree.push(_line); // if it's the last line
} else if (i === splitValue.length - 1) {
var stringChild = tree[index + 1] && tree[index + 1].children && tree[index + 1].children[0];

Expand All @@ -73608,7 +73608,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin
var _line2 = createLine(_children2, lineNumber, node.properties.className);

newTree.push(_line2);
} // if it's the last line
} // if it's neither the first nor the last line

} else {
var _children3 = [newChild];
Expand Down Expand Up @@ -73749,7 +73749,8 @@ function getCodeTree(_ref6) {
var preProps = useInlineStyles ? Object.assign({}, rest, {
style: Object.assign({}, defaultPreStyle, customStyle)
}) : Object.assign({}, rest, {
className: 'hljs'
className: rest.className ? "hljs ".concat(rest.className) : 'hljs',
style: Object.assign({}, customStyle)
});

if (!astGenerator) {
Expand Down
2 changes: 1 addition & 1 deletion demo/build/diff-build.js.map

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions demo/build/prism-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -40596,7 +40596,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

function createLine(children, lineNumber) {
var className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
return wrapLines ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
return wrapLines || className.length > 0 ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
}

var _loop = function _loop() {
Expand All @@ -40621,7 +40621,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

var _line = createLine(_children, lineNumber);

newTree.push(_line); // if it's neither the first nor the last line
newTree.push(_line); // if it's the last line
} else if (i === splitValue.length - 1) {
var stringChild = tree[index + 1] && tree[index + 1].children && tree[index + 1].children[0];

Expand All @@ -40641,7 +40641,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin
var _line2 = createLine(_children2, lineNumber, node.properties.className);

newTree.push(_line2);
} // if it's the last line
} // if it's neither the first nor the last line

} else {
var _children3 = [newChild];
Expand Down Expand Up @@ -40782,7 +40782,8 @@ function getCodeTree(_ref6) {
var preProps = useInlineStyles ? Object.assign({}, rest, {
style: Object.assign({}, defaultPreStyle, customStyle)
}) : Object.assign({}, rest, {
className: 'hljs'
className: rest.className ? "hljs ".concat(rest.className) : 'hljs',
style: Object.assign({}, customStyle)
});

if (!astGenerator) {
Expand Down
2 changes: 1 addition & 1 deletion demo/build/prism-build.js.map

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions demo/build/prismAsyncLight-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -41016,7 +41016,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

function createLine(children, lineNumber) {
var className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
return wrapLines ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
return wrapLines || className.length > 0 ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
}

var _loop = function _loop() {
Expand All @@ -41041,7 +41041,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

var _line = createLine(_children, lineNumber);

newTree.push(_line); // if it's neither the first nor the last line
newTree.push(_line); // if it's the last line
} else if (i === splitValue.length - 1) {
var stringChild = tree[index + 1] && tree[index + 1].children && tree[index + 1].children[0];

Expand All @@ -41061,7 +41061,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin
var _line2 = createLine(_children2, lineNumber, node.properties.className);

newTree.push(_line2);
} // if it's the last line
} // if it's neither the first nor the last line

} else {
var _children3 = [newChild];
Expand Down Expand Up @@ -41202,7 +41202,8 @@ function getCodeTree(_ref6) {
var preProps = useInlineStyles ? Object.assign({}, rest, {
style: Object.assign({}, defaultPreStyle, customStyle)
}) : Object.assign({}, rest, {
className: 'hljs'
className: rest.className ? "hljs ".concat(rest.className) : 'hljs',
style: Object.assign({}, customStyle)
});

if (!astGenerator) {
Expand Down
2 changes: 1 addition & 1 deletion demo/build/prismAsyncLight-build.js.map

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions demo/build/virtualized-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -107113,7 +107113,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

function createLine(children, lineNumber) {
var className = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
return wrapLines ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
return wrapLines || className.length > 0 ? createWrappedLine(children, lineNumber, className) : createUnwrappedLine(children, lineNumber);
}

var _loop = function _loop() {
Expand All @@ -107138,7 +107138,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin

var _line = createLine(_children, lineNumber);

newTree.push(_line); // if it's neither the first nor the last line
newTree.push(_line); // if it's the last line
} else if (i === splitValue.length - 1) {
var stringChild = tree[index + 1] && tree[index + 1].children && tree[index + 1].children[0];

Expand All @@ -107158,7 +107158,7 @@ function processLines(codeTree, wrapLines, lineProps, showLineNumbers, showInlin
var _line2 = createLine(_children2, lineNumber, node.properties.className);

newTree.push(_line2);
} // if it's the last line
} // if it's neither the first nor the last line

} else {
var _children3 = [newChild];
Expand Down Expand Up @@ -107299,7 +107299,8 @@ function getCodeTree(_ref6) {
var preProps = useInlineStyles ? Object.assign({}, rest, {
style: Object.assign({}, defaultPreStyle, customStyle)
}) : Object.assign({}, rest, {
className: 'hljs'
className: rest.className ? "hljs ".concat(rest.className) : 'hljs',
style: Object.assign({}, customStyle)
});

if (!astGenerator) {
Expand Down
2 changes: 1 addition & 1 deletion demo/build/virtualized-build.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-syntax-highlighter",
"version": "13.2.1",
"version": "13.3.1",
"description": "syntax highlighting component for react with prismjs or highlightjs ast using inline styles",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit a69d6a2

Please sign in to comment.