site/node_modules/rehype-katex/lib/index.d.ts

16 lines
626 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
/**
* Render elements with a `language-math` (or `math-display`, `math-inline`)
* class with KaTeX.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns
* Transform.
*/
export default function rehypeKatex(options?: Readonly<Options> | null | undefined): (tree: Root, file: VFile) => undefined;
export type ElementContent = import('hast').ElementContent;
export type Root = import('hast').Root;
export type KatexOptions = import('katex').KatexOptions;
export type VFile = import('vfile').VFile;
export type Options = Omit<KatexOptions, 'displayMode' | 'throwOnError'>;