UNPKG

@m2d/math

Version:

Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.

12 lines (11 loc) 343 B
import { IPlugin } from "@m2d/core"; import * as DOCX from "docx"; /** Parse latex and convert to DOCX MathRun nodes */ export declare const parseLatex: (docx: typeof DOCX, value: string) => DOCX.MathRun[][]; /** * Math Plugin */ export declare const mathPlugin: () => IPlugin<{ type: "" | "math" | "inlineMath"; value?: string; }>;