remark-custom-blocks
Advanced tools
Comparing version 1.0.1 to 1.0.2
'use strict'; | ||
var spaceSeparated = require('space-separated-tokens'); | ||
function escapeRegExp(str) { | ||
@@ -52,2 +54,5 @@ return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); // eslint-disable-line no-useless-escape | ||
var classString = blocks[keep[1]]; | ||
var classList = spaceSeparated.parse(classString); | ||
return add({ | ||
@@ -59,3 +64,3 @@ type: keep[1] + 'CustomBlock', | ||
hProperties: { | ||
className: blocks[keep[1]] | ||
className: classList | ||
} | ||
@@ -62,0 +67,0 @@ } |
{ | ||
"name": "remark-custom-blocks", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"repository": { | ||
@@ -34,2 +34,5 @@ "url": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks", | ||
"license": "MIT", | ||
"dependencies": { | ||
"space-separated-tokens": "^1.1.1" | ||
}, | ||
"devDependencies": { | ||
@@ -36,0 +39,0 @@ "babel-cli": "^6.24.1", |
@@ -0,1 +1,3 @@ | ||
const spaceSeparated = require('space-separated-tokens') | ||
function escapeRegExp (str) { | ||
@@ -51,2 +53,5 @@ return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&') // eslint-disable-line no-useless-escape | ||
const classString = blocks[keep[1]] | ||
const classList = spaceSeparated.parse(classString) | ||
return add({ | ||
@@ -58,3 +63,3 @@ type: `${keep[1]}CustomBlock`, | ||
hProperties: { | ||
className: blocks[keep[1]] | ||
className: classList | ||
} | ||
@@ -61,0 +66,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
10874
136
1
+ Addedspace-separated-tokens@1.1.5(transitive)