Skip to Content
Md2Docx logo Md2Docx

mathPlugin

Updated 9 hr ago

const mathPlugin: (options?) => IPlugin<\{ type: "" | "math" | "inlineMath"; value?: string; \}>

Defined in: math.ts:704

Creates the md2docx math plugin for compiling LaTeX math expressions (MDAST math and inlineMath) to native Microsoft Word OpenXML Math elements (m:oMath).

Parameters

options?

IMathPluginOptions

Configuration options for error modes and inline length constraints.

Returns

IPlugin<\{ type: "" | "math" | "inlineMath"; value?: string; \}>

Configured md2docx plugin object with inline and block handlers.

On this page