Skip to content

v3.0.2

Compare
Choose a tag to compare
@github-actions github-actions released this 04 Oct 19:32
· 48 commits to main since this release

v3.0.1...v3.0.2

Options

import { Plugin } from 'unified';
import { Root, Element, RootContent } from 'hast';
export declare type RehypeRewriteOptions = {
  /**
   * Select an element to be wrapped. Expects a string selector that can be passed to hast-util-select ([supported selectors](https://github.com/syntax-tree/hast-util-select/blob/master/readme.md#support)).
   * If `selector` is not set then wrap will check for a body all elements.
   */
  selector?: string;
  /** Rewrite Element. */
  rewrite(node: Root | RootContent, index: number | null, parent: Root | Element | null): void;
};
declare const remarkRewrite: Plugin<[RehypeRewriteOptions?], Root>;
export default remarkRewrite;