UNPKG

rehype-graphviz-diagram

Version:

A Unified/Rehype Plugin that allows you transform graphviz codes into SVG diagram.

10 lines (9 loc) 338 B
import type { Properties, Root } from 'hast'; import type { Plugin } from 'unified'; interface RehypeGraphvizDiagramOption { containerTagName?: string; containerTagProps?: Properties; postProcess?: (svg: string) => string; } export declare const rehypeGraphvizDiagram: Plugin<[RehypeGraphvizDiagramOption?], Root>; export {};