UNPKG

react-native-mathjax-html-to-svg

Version:

React Native component to display mathematics in html using MathJax. Uses [MathJax](https://github.com/mathjax/)

29 lines (28 loc) 1.4 kB
import { AbstractInputJax } from '../core/InputJax.js'; import { OptionList } from '../util/Options.js'; import { MathDocument } from '../core/MathDocument.js'; import { MathItem } from '../core/MathItem.js'; import { MmlNode } from '../core/MmlTree/MmlNode.js'; import { MmlFactory } from '../core/MmlTree/MmlFactory.js'; import { FindTeX } from './tex/FindTeX.js'; import TexError from './tex/TexError.js'; import ParseOptions from './tex/ParseOptions.js'; import { ParserConfiguration } from './tex/Configuration.js'; import './tex/base/BaseConfiguration.js'; export declare class TeX<N, T, D> extends AbstractInputJax<N, T, D> { static NAME: string; static OPTIONS: OptionList; protected findTeX: FindTeX<N, T, D>; protected configuration: ParserConfiguration; protected latex: string; protected mathNode: MmlNode; private _parseOptions; protected static configure(packages: (string | [string, number])[]): ParserConfiguration; protected static tags(options: ParseOptions, configuration: ParserConfiguration): void; constructor(options?: OptionList); setMmlFactory(mmlFactory: MmlFactory): void; get parseOptions(): ParseOptions; compile(math: MathItem<N, T, D>, document: MathDocument<N, T, D>): MmlNode; findMath(strings: string[]): import("mathjax-full/ts/core/MathItem").ProtoItem<N, T>[]; formatError(err: TexError): MmlNode; }