remark-custom-blocks
Advanced tools
Comparing version 0.0.8 to 0.0.9
'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 | ||
} | ||
@@ -34,5 +33,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; | ||
@@ -72,6 +71,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; | ||
@@ -78,0 +77,0 @@ var interruptBlockquote = Parser.prototype.interruptBlockquote; |
{ | ||
"name": "remark-custom-blocks", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"repository": { | ||
@@ -16,3 +16,4 @@ "url": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks", | ||
"exclude": [ | ||
"dist" | ||
"dist", | ||
"__tests__" | ||
] | ||
@@ -19,0 +20,0 @@ }, |
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
7661
64