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)

7 lines (6 loc) 321 B
import type { RuleBlock } from 'markdown-it/lib/parser_block'; /** * Block rule: parse LaTeX \begin{lstlisting}[...]\end{lstlisting} as a code block token. * - Supports optional [mathescape] in options: math is parsed into children (text + math tokens). */ export declare const latexLstlistingEnvBlockRule: RuleBlock;