UNPKG

latex-math

Version:

Parses LaTeX math strings—typically extracted from Markdown—and converts them into an abstract syntax tree (AST).

14 lines (13 loc) 559 B
import * as Ast from "@unified-latex/unified-latex-types"; import { EnvInfoRecord, MacroInfoRecord } from "@unified-latex/unified-latex-types"; import { Plugin } from "unified"; type PluginOptions = { environments: EnvInfoRecord; macros: MacroInfoRecord; } | undefined; /** * Unified plugin to process macros and environments. Any environments that contain math content * are reparsed (if needed) in math mode. */ export declare const unifiedLatexProcessMacrosAndEnvironmentsWithMathReparse: Plugin<PluginOptions[], Ast.Root, Ast.Root>; export {};