site/node_modules/mathjax-full/js/input/mathml/MathMLCompile.d.ts

25 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
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 markMrows(mml: MmlNode): void;
protected trimSpace(text: string): string;
protected error(message: string): void;
}