UNPKG

react-native-mathjax-html-to-svg

Version:

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

26 lines (25 loc) 1.18 kB
import { MmlFactory } from '../../core/MmlTree/MmlFactory.js'; import { MmlNode } from '../../core/MmlTree/MmlNode.js'; import { OptionList } from '../../util/Options.js'; import { DOMAdaptor } from '../../core/DOMAdaptor.js'; export declare class MathMLCompile<N, T, D> { static OPTIONS: OptionList; adaptor: DOMAdaptor<N, T, D>; protected factory: MmlFactory; protected options: OptionList; constructor(options?: OptionList); setMmlFactory(mmlFactory: MmlFactory): void; compile(node: N): MmlNode; makeNode(node: N): MmlNode; protected addAttributes(mml: MmlNode, node: N): void; protected filterAttribute(_name: string, value: string): string; protected filterClassList(list: string[]): string[]; protected addChildren(mml: MmlNode, node: N): void; protected addText(mml: MmlNode, child: N): void; protected checkClass(mml: MmlNode, node: N): void; protected fixCalligraphic(variant: string): string; protected texAtom(mml: MmlNode, texClass: string, limits: boolean): void; protected markMrows(mml: MmlNode): void; protected trimSpace(text: string): string; protected error(message: string): void; }