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) 425 B
/** * Inline rule: parse \begin{lstlisting}[...]\end{lstlisting} in inline stream. * - Emits 'latex_lstlisting_env' token (block=false), so renderer can output <pre><code>...</code></pre>. * - If [mathescape] present, children are math-only tokens (text + inline/display math), * everything else stays plain text. */ export declare const latexLstlistingEnvInlineRule: (state: StateInline, silent: boolean) => boolean;