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.4 to 1.0.5

29

lib/index.d.ts

@@ -1,5 +0,28 @@

import { Plugin } from 'unified';
import { Root } from 'hast';
export declare type RehypeIgnoreOptions = {
import type { Plugin } from 'unified';
import type { Root, Literal } from 'hast';
/**
* Raw string of HTML embedded into HTML AST.
*/
export interface Raw extends Literal {
/**
* Node type.
*/
type: 'raw';
}
declare module 'hast' {
interface RootContentMap {
/**
* Raw string of HTML embedded into HTML AST.
*/
raw: Raw;
}
interface ElementContentMap {
/**
* Raw string of HTML embedded into HTML AST.
*/
raw: Raw;
}
}
export type RehypeIgnoreOptions = {
/**
* Character to use for opening delimiter, by default `rehype:ignore:start`

@@ -6,0 +29,0 @@ */

26

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

@@ -14,4 +14,4 @@ "homepage": "https://jaywcjlove.github.io/rehype-ignore",

"start": "node lib/index.js",
"watch": "tsbb watch --disable-babel",
"build": "tsbb build --disable-babel",
"watch": "tsbb watch",
"build": "tsbb build",
"type-check": "tsc --noEmit",

@@ -46,17 +46,17 @@ "test": "tsbb test",

"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
"node": "^14.13.1 || >=16.0.0"
},
"dependencies": {
"unified": "~10.1.2",
"unist-util-visit": "~4.1.0",
"hast-util-select": "~5.0.1"
"unified": "^10.1.2",
"unist-util-visit": "^4.1.2",
"hast-util-select": "^5.0.5"
},
"devDependencies": {
"rehype": "~12.0.1",
"rehype-stringify": "~9.0.3",
"rehype-raw": "~6.1.1",
"remark-parse": "~10.0.1",
"remark-rehype": "~10.1.0",
"tsbb": "~3.7.2"
"rehype": "^12.0.1",
"rehype-stringify": "^9.0.3",
"rehype-raw": "^6.1.1",
"remark-parse": "^10.0.1",
"remark-rehype": "^10.1.0",
"tsbb": "^4.1.3"
}
}

@@ -1,5 +0,32 @@

import { Plugin } from 'unified';
import { Root, RootContent } from 'hast';
import type { Plugin } from 'unified';
import type { Root, RootContent, Literal } from 'hast';
import { visit } from 'unist-util-visit';
/**
* Raw string of HTML embedded into HTML AST.
*/
export interface Raw extends Literal {
/**
* Node type.
*/
type: 'raw'
}
// Register nodes in content.
declare module 'hast' {
interface RootContentMap {
/**
* Raw string of HTML embedded into HTML AST.
*/
raw: Raw
}
interface ElementContentMap {
/**
* Raw string of HTML embedded into HTML AST.
*/
raw: Raw
}
}
export type RehypeIgnoreOptions = {

@@ -6,0 +33,0 @@ /**

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