mathpix-markdown-it
Version:
Mathpix-markdown-it is an open source implementation of the mathpix-markdown spec written in Typescript. It relies on the following open source libraries: MathJax v3 (to render math with SVGs), markdown-it (for standard Markdown parsing)
19 lines (18 loc) • 966 B
TypeScript
import { MmlNode } from "mathjax-full/js/core/MmlTree/MmlNode";
import { eSymbolType } from "./helperA";
import { IAsciiData } from "./common";
export declare const needFirstSpaceBeforeTeXAtom: (node: any) => boolean;
export declare const needLastSpaceAfterTeXAtom: (node: any) => boolean;
export declare const needFirstSpace: (node: any, isLinear?: boolean) => boolean;
export declare const getSymbolType: (tag: string, output: string) => "" | eSymbolType;
export declare const SymbolToAM: (tag: string, output: string, atr?: any, showStyle?: boolean) => {
ascii: any;
linear: any;
};
export declare const FindSymbolReplace: (str: string) => string;
export declare const FindSymbolToAM: (tag: string, output: string, atr?: any) => {
ascii: string;
linear: string;
};
export declare const getAttributes: (node: MmlNode) => import("mathjax-full/js/core/Tree/Node").PropertyList;
export declare const handle: (node: any, serialize: any) => IAsciiData;