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

rehype-ignore

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-ignore - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

lib/index.js

@@ -15,3 +15,3 @@ import { visit } from 'unist-util-visit';

if (item.type === 'raw' || item.type === 'comment') {
let str = item.value?.trim();
let str = (item.value || '').trim();
str = str.replace(/^<!--(.*?)-->/, '$1');

@@ -18,0 +18,0 @@ if (str === openDelimiter) {

{
"name": "rehype-ignore",
"version": "1.0.3",
"version": "1.0.4",
"description": "Ignore content display via HTML comments, Shown in GitHub readme, excluded in HTML.",

@@ -5,0 +5,0 @@ "homepage": "https://jaywcjlove.github.io/rehype-ignore",

@@ -29,3 +29,3 @@ import { Plugin } from 'unified';

if (item.type === 'raw' || item.type === 'comment') {
let str = item.value?.trim();
let str = (item.value || '').trim();
str = str.replace(/^<!--(.*?)-->/, '$1')

@@ -32,0 +32,0 @@ if (str === openDelimiter) {

Sorry, the diff of this file is not supported yet

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