Skip to Content
Md2Docx logo Md2Docx

IMathPluginOptions

Updated 8 hr ago

Defined in: math.ts:577

Properties

errorMode?

optional errorMode?: MathErrorMode

Defined in: math.ts:585

Error handling strategy when LaTeX parsing fails or runaway syntax is detected.

  • "warn": Emits a styled warning text badge: ⚠️ [Math Syntax Error: ...]
  • "raw": Emits the raw formula string as monospace code text
  • "throw": Re-throws the underlying parse error

Default

"warn"

maxInlineLength?

optional maxInlineLength?: number

Defined in: math.ts:591

Maximum character length allowed for inline equations. Prevents runaway AST nodes when unclosed dollar signs occur.

Default

1000

On this page