rehype-html-blocks
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -16,4 +16,6 @@ 'use strict'; | ||
function visitor(node, index, parent) { | ||
var replacement = void 0; | ||
if (!parent) return; | ||
var replacement = { | ||
type: 'text', | ||
value: node.value | ||
}; | ||
@@ -30,7 +32,2 @@ if (!inline.includes(parent.tagName)) { | ||
}; | ||
} else { | ||
replacement = { | ||
type: 'text', | ||
value: node.value | ||
}; | ||
} | ||
@@ -37,0 +34,0 @@ |
{ | ||
"name": "rehype-html-blocks", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "url": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rehype-html-blocks", |
@@ -48,4 +48,6 @@ const visit = require('unist-util-visit') | ||
function visitor (node, index, parent) { | ||
let replacement | ||
if (!parent) return | ||
let replacement = { | ||
type: 'text', | ||
value: node.value | ||
} | ||
@@ -62,7 +64,2 @@ if (!inline.includes(parent.tagName)) { | ||
} | ||
} else { | ||
replacement = { | ||
type: 'text', | ||
value: node.value | ||
} | ||
} | ||
@@ -69,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
4140
88