@beoe/rehype-gnuplot
Version:
rehype gnuplot plugin
16 lines (15 loc) • 578 B
TypeScript
import type { Plugin } from "unified";
import type { Root } from "hast";
/**
* If all gnuplot diagrams are cached it would not even load module in memory.
* If there are diagrams, it would load module and first few renders would be async,
* but all consequent renders would be sync
*/
export declare const render: (x: string) => {
svg: string;
} | Promise<{
svg: string;
}>;
export type RehypeGnuplotConfig = {};
export declare const rehypeGnuplot: Plugin<[(import("@beoe/rehype-code-hook-img").BasePluginOptions | undefined)?], Root>;
export default rehypeGnuplot;