site/node_modules/rehype-raw/lib/index.d.ts

17 lines
514 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
/**
* Parse the tree (and raw nodes) again, keeping positional info okay.
*
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns
* Transform.
*/
export default function rehypeRaw(options?: Options | null | undefined): (tree: Root, file: VFile) => Root;
export type Root = import('hast').Root;
export type RawOptions = import('hast-util-raw').Options;
export type VFile = import('vfile').VFile;
/**
* Configuration.
*/
export type Options = Omit<RawOptions, 'file'>;