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

rehype-html-blocks

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-html-blocks - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

11

dist/index.js

@@ -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 @@

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