remark-custom-blocks
Advanced tools
Comparing version 0.0.7 to 0.0.8
'use strict'; | ||
function escapeRegExp(str) { | ||
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); // eslint-disable-line no-useless-escape | ||
return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&' // eslint-disable-line no-useless-escape | ||
); | ||
} | ||
@@ -33,5 +34,5 @@ | ||
while ((idx = value.indexOf(C_NEWLINE)) !== -1) { | ||
var next = value.indexOf(C_NEWLINE, idx + 1); | ||
var next = value.indexOf(C_NEWLINE, idx + 1 | ||
// either slice until next NEWLINE or slice until end of string | ||
var lineToEat = next !== -1 ? value.slice(idx + 1, next) : value.slice(idx + 1); | ||
);var lineToEat = next !== -1 ? value.slice(idx + 1, next) : value.slice(idx + 1); | ||
if (lineToEat[0] !== C_FENCE) break; | ||
@@ -71,6 +72,6 @@ // remove leading `FENCE ` or leading `FENCE` | ||
blockTokenizers.custom_blocks = blockTokenizer; | ||
blockMethods.splice(blockMethods.indexOf('fencedCode') + 1, 0, 'custom_blocks'); | ||
blockMethods.splice(blockMethods.indexOf('fencedCode') + 1, 0, 'custom_blocks' | ||
// Inject into interrupt rules | ||
var interruptParagraph = Parser.prototype.interruptParagraph; | ||
);var interruptParagraph = Parser.prototype.interruptParagraph; | ||
var interruptList = Parser.prototype.interruptList; | ||
@@ -77,0 +78,0 @@ var interruptBlockquote = Parser.prototype.interruptBlockquote; |
{ | ||
"name": "remark-custom-blocks", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"repository": { | ||
@@ -14,2 +14,7 @@ "url": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks", | ||
], | ||
"nyc": { | ||
"exclude": [ | ||
"dist" | ||
] | ||
}, | ||
"scripts": { | ||
@@ -16,0 +21,0 @@ "pretest": "eslint src", |
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
7645
65