rehype-ignore
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -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 @@ */ |
{ | ||
"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
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
15754
250
Updatedhast-util-select@^5.0.5
Updatedunified@^10.1.2
Updatedunist-util-visit@^4.1.2