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)

8 lines (7 loc) 293 B
import { Token } from 'markdown-it'; import { eFontType } from "./text-dimentions"; export interface ISizeEx { widthEx: number; heightEx: number; } export declare const getTextWidthByTokens: (tokens: Array<Token>, widthEx?: number, heightEx?: number, fontType?: eFontType) => ISizeEx;