MathOptions
OfficeIMO.MarkdownRenderer
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
- Property MarkdownRendererOptions.Math
Constructors
public MathOptions() #Inherited Methods
Properties
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.