index.d.ts 564 B

123456789101112131415
  1. /**
  2. * Render elements with a `language-math` (or `math-display`, `math-inline`)
  3. * class with KaTeX.
  4. *
  5. * @param {Readonly<Options> | null | undefined} [options]
  6. * Configuration (optional).
  7. * @returns
  8. * Transform.
  9. */
  10. export default function rehypeKatex(options?: Readonly<Options> | null | undefined): (tree: Root, file: VFile) => undefined;
  11. export type Options = Omit<katex.KatexOptions, "displayMode" | "throwOnError">;
  12. import type { Root } from 'hast';
  13. import type { VFile } from 'vfile';
  14. import katex from 'katex';
  15. //# sourceMappingURL=index.d.ts.map