prism-react-renderer
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -39,6 +39,6 @@ var newlineRe = /\r\n|\r|\n/; // Empty lines need to contain a single empty token, denoted with { empty: true } | ||
if (typeof token === "string") { | ||
types = ["plain"]; | ||
types = stackIndex > 0 ? types : ["plain"]; | ||
content = token; | ||
} else { | ||
types = types.concat(token.type); | ||
types = types[0] === token.type ? types : types.concat(token.type); | ||
content = token.content; | ||
@@ -45,0 +45,0 @@ } // If token.content is an array, increase the stack depth and repeat this while-loop |
@@ -43,6 +43,6 @@ "use strict"; | ||
if (typeof token === "string") { | ||
types = ["plain"]; | ||
types = stackIndex > 0 ? types : ["plain"]; | ||
content = token; | ||
} else { | ||
types = types.concat(token.type); | ||
types = types[0] === token.type ? types : types.concat(token.type); | ||
content = token.content; | ||
@@ -49,0 +49,0 @@ } // If token.content is an array, increase the stack depth and repeat this while-loop |
{ | ||
"name": "prism-react-renderer", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Renders highlighted Prism output using React", | ||
@@ -114,2 +114,3 @@ "main": "lib/index.js", | ||
"npm-run-all": "^4.1.3", | ||
"prettier": "^1.14.2", | ||
"prismjs": "^1.15.0", | ||
@@ -116,0 +117,0 @@ "react": "^16.4.2", |
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
254927
31
5955
21