Socket
Socket
Sign inDemoInstall

remark-custom-blocks

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-custom-blocks - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

11

dist/index.js
'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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc