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) • 372 B
TypeScript
import MarkdownIt, { RuleBlock } from "markdown-it";
/**
* Returns terminator rules for the MathML block excluding the current rule (selfRule).
* The base list is cached at the MarkdownIt instance level.
*/
export declare function collectTerminatorRules(md: MarkdownIt, selfRule: RuleBlock, altGroup?: string): RuleBlock[];
export declare const mathMLBlock: RuleBlock;