UNPKG

latex-math

Version:

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

15 lines (14 loc) 478 B
import type { Plugin } from "unified"; import type * as Ast from "@unified-latex/unified-latex-types"; type PluginOptions = { /** * Whether the text will be parsed assuming math mode or not. */ mode: "math" | "regular"; } | void; /** * Parse a string to a LaTeX AST with no post processing. For example, * no macro arguments will be attached, etc. */ export declare const unifiedLatexFromStringMinimal: Plugin<PluginOptions[], string, Ast.Root>; export {};