@beoe/rehype-penrose
Version:
rehype penrose plugin
29 lines (28 loc) • 701 B
TypeScript
import type { Plugin } from "unified";
import type { Root } from "hast";
export type PenroseOptions = {
/**
* path to shared folder for `.domain` and `.style` files
*/
shared: string;
/**
* Width of diagram
*/
width?: number;
/**
* Height of diagram
*/
height?: number;
/**
* Name (or path) for `.style` file
*/
style?: string;
/**
* Name (or path) for `.domain` file
*/
domain?: string;
variation?: string;
namespace?: string;
};
export declare const rehypePenrose: Plugin<[((PenroseOptions & import("@beoe/rehype-code-hook-img").BasePluginOptions) | undefined)?], Root>;
export default rehypePenrose;