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)

14 lines (13 loc) 488 B
import type { RuleBlock } from 'markdown-it/lib/parser_block'; /** * Block rule that parses LaTeX list environments: * \begin{itemize} ... \end{itemize} * \begin{enumerate} ... \end{enumerate} * * It: * - detects list begin/end commands, * - collects and splits \item content into logical items, * - handles \setcounter and nested lists on the same line, * - emits corresponding *_list_open, *_list_close, and list item tokens. */ export declare const Lists: RuleBlock;