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)
12 lines (11 loc) • 565 B
TypeScript
import { IMenuPosition } from "./interfaces";
export declare const getPosition: (e: any) => {
x: number;
y: number;
};
export declare const getMenuElement: () => Element;
export declare const getContextMenuElement: () => Element;
export declare const positionMenu: (e: any) => void;
export declare const getPositionMenuByClick: (e: any, itemsLength: any) => IMenuPosition;
export declare const findClassInElement: (el: any, classNamesList: any) => string;
export declare const clickInsideElement: (e: any, classNamesList: any, isMenuItem?: boolean) => any;