react-native-mathjax-html-to-svg
Version:
React Native component to display mathematics in html using MathJax. Uses [MathJax](https://github.com/mathjax/)
27 lines (26 loc) • 1.18 kB
TypeScript
import { MmlVisitor } from './MmlVisitor.js';
import { MmlNode, TextNode, XMLNode } from './MmlNode.js';
export declare const DATAMJX = "data-mjx-";
export declare const toEntity: (c: string) => string;
declare type PropertyList = {
[name: string]: string;
};
export declare class SerializedMmlVisitor extends MmlVisitor {
static variants: PropertyList;
static defaultAttributes: {
[kind: string]: PropertyList;
};
visitTree(node: MmlNode): string;
visitTextNode(node: TextNode, _space: string): string;
visitXMLNode(node: XMLNode, space: string): string;
visitInferredMrowNode(node: MmlNode, space: string): string;
visitTeXAtomNode(node: MmlNode, space: string): string;
visitAnnotationNode(node: MmlNode, space: string): string;
visitDefault(node: MmlNode, space: string): string;
protected childNodeMml(node: MmlNode, space: string, nl: string): string;
protected getAttributes(node: MmlNode): string;
protected getDataAttributes(node: MmlNode): PropertyList;
protected setDataAttribute(data: PropertyList, name: string, value: string): void;
protected quoteHTML(value: string): string;
}
export {};