UNPKG

react-scitext

Version:

React component for rendering scientific text with Markdown, LaTeX, and SMILES support

14 lines (13 loc) 972 B
import { LatexEnv, MathFragment, VariableMatch } from '../types'; export declare function findTopLevelEnvs(text: string): LatexEnv[]; export declare function splitLatex(latex: string): string[]; export declare function isInlineLatexFragment(fragment: string): RegExpMatchArray | null; export declare function isSmallVariableLatex(fragment: string): VariableMatch | null; export declare function isSimpleVariable(fragment: string): VariableMatch | null; export declare function isBlockLatexFragment(fragment: string): RegExpMatchArray | null; export declare function isSelectiveInlineLatex(fragment: string): RegExpMatchArray | null; export declare function isLatexEnvironment(fragment: string): RegExpMatchArray | null; export declare function analyzeMathFragment(fragment: string): MathFragment; export declare function validateLatexInput(input: string): boolean; export declare function sanitizeLatexContent(content: string): string; //# sourceMappingURL=latex.d.ts.map