UNPKG

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) 590 B
import { LiteElement } from "mathjax-full/js/adaptors/lite/Element"; export interface IMathDimensions { containerWidth: string; widthEx: number; heightEx: number; viewBoxHeight: number; viewBoxHeightAndDepth: number; } interface INodeAttributes { containerWidth: string; svgViewBox: string; svgWidth: string; svgMinWidth: string; svgHeight: string; } export declare const getNodeAttributes: (node: LiteElement | HTMLElement) => INodeAttributes; export declare const getMathDimensions: (node: LiteElement | HTMLElement) => IMathDimensions; export {};