Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.11 to 0.0.12

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
);
}

@@ -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.11",
"version": "0.0.12",
"repository": {

@@ -5,0 +5,0 @@ "url": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks",

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