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)

17 lines (16 loc) 500 B
import { Token } from 'markdown-it'; export interface ITocItem { level: number; link: string; value: string; content: string; children?: Array<Token>; subHeadings?: Array<Token>; } export interface ITocData { index: number; /** Index of the token in the array of tokens for building nested headers */ tocList: Array<ITocItem>; } export declare const clearSlugsTocItems: () => void; declare const _default: (md: MarkdownIt, opts: any) => void; export default _default;