Comparing version 0.2.22 to 0.2.23
@@ -746,9 +746,8 @@ /** | ||
token.text = hljs.highlightAuto(token.text).value; | ||
// intentionally skip 'no-highlight' | ||
// intentionally skip 'no-highlight' | ||
++metadata.codeCounter; | ||
if (token.demo !== undefined) | ||
return '<div id="codecontent-' + metadata.codeCounter + '" class="demo language-' + token.lang + '">' + token.text + '</div>'; | ||
return '<div class="demo language-' + token.lang + '">' + token.text + '</div>'; | ||
var pretag = '<pre id="codecontent-' + metadata.codeCounter + '">'; | ||
var pretag = '<pre>'; | ||
@@ -875,3 +874,3 @@ return pretag + '<code' | ||
var out = ''; | ||
var metadata = { codeCounter: 0 }; | ||
var metadata = {}; | ||
@@ -884,4 +883,2 @@ while (next()) { | ||
token = null; | ||
delete metadata.codeCounter; | ||
@@ -888,0 +885,0 @@ return [out, metadata]; |
{ | ||
"name" : "namp", | ||
"version" : "0.2.22", | ||
"version" : "0.2.23", | ||
"description" : "Markdown parser for Node, with Maruku, GFM, and PHP Extras support, plus more. Based on marked.", | ||
@@ -5,0 +5,0 @@ "keywords" : [ "markdown", "maruku", "gfm", "text processing", "ast" ], |
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
262054
1150