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)
14 lines (13 loc) • 714 B
TypeScript
export interface ISeparatingSpan {
pos: number;
content: string;
nextPos: number;
}
export interface IContentAndSeparatingSpan {
content: string;
contentSpan: string;
}
export declare const getSeparatingSpanFromString: (str: string, pos: number, res: ISeparatingSpan[], previewUuid: string) => ISeparatingSpan[];
export declare const getContentAndSeparatingSpanFromLine: (line: string, pos?: number, previewUuid?: string, res?: IContentAndSeparatingSpan) => IContentAndSeparatingSpan;
export declare const removeSeparatingSpanFromContent: (content: string, previewUuid: string) => IContentAndSeparatingSpan;
export declare const getHtmlSeparatingSpanContainer: (contentSpan: string) => string;