Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

MathOptions

Namespace OfficeIMO.MarkdownRenderer
Assembly OfficeIMO.MarkdownRenderer
Modifiers sealed

Options controlling math rendering (KaTeX) when used in a WebView/browser context. Math is authored as plain text delimiters (for example $...$ or $$...$$) and rendered client-side.

Inheritance

  • Object
  • MathOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Constructors

Properties

public Boolean Enabled { get; set; } #

Enable math rendering support. Default: true.

public String CssUrl { get; set; } #

CSS URL for KaTeX. Default points at jsDelivr. Hosts can override this to use local assets for offline scenarios.

public String ScriptUrl { get; set; } #

Script URL for KaTeX. Default points at jsDelivr.

public String AutoRenderScriptUrl { get; set; } #

Script URL for KaTeX auto-render extension. Default points at jsDelivr.

public Boolean EnableDollarInline { get; set; } #

Enable $...$ inline math. Default: true.

public Boolean EnableDollarDisplay { get; set; } #

Enable $$...$$ display math. Default: true.

public Boolean EnableParenInline { get; set; } #

Enable \\(...\\) inline math. Default: true.

public Boolean EnableBracketDisplay { get; set; } #

Enable \\[...\\] display math. Default: true.

public Boolean EnableFencedMathBlocks { get; set; } #

When true, fenced code blocks named math/latex are converted into display-math nodes before rendering, so authors can write: ```math\nx^2\n``` Default: true.

public String[] FencedMathLanguages { get; set; } #

Fence languages treated as display math when EnableFencedMathBlocks is enabled. Default: math, latex.