UNPKG

react-latex-editor

Version:

A powerful React rich text editor with mathematical equation support, built on TipTap with MathLive integration

36 lines 1.11 kB
declare global { interface Window { MathJax?: { tex: { inlineMath: string[][]; displayMath: string[][]; processEscapes: boolean; processEnvironments: boolean; packages: string[]; }; options: { skipHtmlTags: string[]; ignoreHtmlClass: string; processHtmlClass: string; }; startup: { pageReady?: () => Promise<void>; defaultPageReady: () => Promise<void>; }; typesetPromise?: (elements: Element[]) => Promise<void>; }; } } interface ViewerProps { content: string; className?: string; enableMath?: boolean; mathJaxConfig?: { inlineMath?: string[][]; displayMath?: string[][]; packages?: string[]; }; } export declare const Viewer: ({ content, className, enableMath, mathJaxConfig, }: ViewerProps) => import("react/jsx-runtime").JSX.Element; export default Viewer; //# sourceMappingURL=Viewer.d.ts.map