mdast2docx logo Md2Docx
Version 0.1.0API DocsInterfaces

IMathPluginOptions

Updated 5 min ago

Defined in: index.ts:428

Properties

errorMode?

optional errorMode?: MathErrorMode

Defined in: index.ts:436

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: index.ts:442

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

Default

1000

On this page