UNPKG

@beoe/rehype-d2

Version:
12 lines (11 loc) 412 B
import type { Plugin } from "unified"; import type { Root } from "hast"; import { D2Options } from "./d2.js"; export type RehypeD2Config = { d2Options?: Omit<D2Options, "themeID"> & { theme?: string; darkTheme?: string; }; }; export declare const rehypeD2: Plugin<[((RehypeD2Config & import("@beoe/rehype-code-hook-img").BasePluginOptions) | undefined)?], Root>; export default rehypeD2;