Comparing version 0.2.16 to 0.2.17
@@ -99,4 +99,4 @@ /** | ||
jsignoreEnd = /\n\s*\/\*\s+endcontent\s+\*\/\s*\n/; | ||
codeCounter = 0; | ||
/** | ||
@@ -789,3 +789,3 @@ * Block Lexer | ||
pretag += 'class="demo" '; | ||
pretag += 'id="code-' + ++codeCounter + '">'; | ||
pretag += 'id="code-' + ++metadata.codeCounter + '">'; | ||
@@ -795,3 +795,3 @@ if (blocks.length > 0) { | ||
+ (token.lang | ||
? ' class="hiddenstartcontent language-' | ||
? ' class="originalcontent hidden language-' | ||
+ token.lang | ||
@@ -801,6 +801,6 @@ + '"' | ||
+ '>' | ||
+ blocks[0] | ||
+ blocks.join("\n") | ||
+ '</code>\n<code' | ||
+ (token.lang | ||
? ' class="content language-' | ||
? ' class="snippetcontent language-' | ||
+ token.lang | ||
@@ -811,10 +811,2 @@ + '"' | ||
+ blocks[1] | ||
+ '</code>\n<code' | ||
+ (token.lang | ||
? ' class="hiddenendcontent language-' | ||
+ token.lang | ||
+ '"' | ||
: '') | ||
+ '>' | ||
+ blocks[2] | ||
+ '</code></pre>\n'; | ||
@@ -943,3 +935,3 @@ } | ||
var out = ''; | ||
var metadata = {}; | ||
var metadata = { codeCounter: 0 }; | ||
@@ -953,2 +945,4 @@ while (next()) { | ||
delete metadata.codeCounter; | ||
return [out, metadata]; | ||
@@ -955,0 +949,0 @@ } |
{ | ||
"name" : "namp", | ||
"version" : "0.2.16", | ||
"version" : "0.2.17", | ||
"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" ], |
Sorry, the diff of this file is not supported yet
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
268321
1202