rehype-document
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -9,12 +9,3 @@ /** | ||
*/ | ||
export default function rehypeDocument(options?: Readonly<Options> | null | undefined): (tree: Root, file: VFile) => { | ||
type: string; | ||
children: (import("hast").Element | { | ||
type: string; | ||
value?: never; | ||
} | { | ||
type: string; | ||
value: string; | ||
})[]; | ||
}; | ||
export default function rehypeDocument(options?: Readonly<Options> | null | undefined): (tree: Root, file: VFile) => Root; | ||
export type ElementContent = import('hast').ElementContent; | ||
@@ -21,0 +12,0 @@ export type Nodes = import('hast').Nodes; |
@@ -82,3 +82,3 @@ /** | ||
* File. | ||
* @param {Root} tree | ||
* @returns {Root} | ||
* New tree. | ||
@@ -178,4 +178,4 @@ */ | ||
: Array.isArray(value) | ||
? value | ||
: [value] | ||
? value | ||
: [value] | ||
} |
{ | ||
"name": "rehype-document", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "rehype plugin to wrap a document around a fragment", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
23578
246