Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MathOptions

OfficeIMO.MarkdownRenderer

Namespace
OfficeIMO.MarkdownRenderer
Assembly
OfficeIMO.MarkdownRenderer
Source revision
ba882f6b0d07 with working tree changes
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

Explore 1 API references to this type

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

Returned or exposed by 1

Constructors

public MathOptions() #

Properties

public bool 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 bool EnableDollarInline { get; set; } #

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

public bool EnableDollarDisplay { get; set; } #

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

public bool EnableParenInline { get; set; } #

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

public bool EnableBracketDisplay { get; set; } #

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

public bool 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 MathOptions.EnableFencedMathBlocks is enabled. Default: math, latex.