import rehypeKatex from "rehype-katex"; import type { Transformer } from "unified"; /** * A safe wrapper around rehypeKatex that catches errors and silently continues processing. * * Issue: The upstream rehype-katex@7.0.1 plugin crashes with "Cannot read properties of undefined * (reading 'className')" when processing certain HTML structures like footnote references ([^4]) * that generate elements within tags. * The plugin attempts to access the className property on undefined objects during its DOM * traversal. * * This wrapper catches those errors and allows markdown processing to continue without crashing * the component. */ type RehypeKatexOptions = Parameters[0]; export declare const safeRehypeKatex: (options?: RehypeKatexOptions) => Transformer; export {}; //# sourceMappingURL=safeRehypeKatex.d.ts.map