Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MathBlock

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Display math block delimited by $$ when MarkdownLoadOptions.Math is enabled.

Inheritance

Remarks

The block carries TeX source only. Converters lay it out through their own math engines, and HTML output keeps \[...\] delimiters for client-side renderers such as KaTeX or MathJax. Display math from ```math fences and from LaTeX or AsciiDoc projections uses SemanticFencedBlock with the math semantic kind.

Constructors

public MathBlock(string content) #

Creates a display math block.

Parameters

content string required
TeX source without the $$ delimiters.

Properties

public string Content { get; } #

TeX source without the $$ delimiters.

public MarkdownSourceSpan? ContentSourceSpan { get; private set; } #

Source span for the TeX source when parsed from Markdown.

public MarkdownSourceSpan? OpeningDelimiterSourceSpan { get; private set; } #

Source span for the opening $$ delimiter when parsed from Markdown.

public MarkdownSourceSpan? ClosingDelimiterSourceSpan { get; private set; } #

Source span for the closing $$ delimiter when parsed from Markdown.