Docsv3.30.0
Back to API Reference
Class

MathParseRule

sealed
Inherits:ParseRule

Replaces a formula with one layout placeholder while preserving its source as the modifier parameter: from <math>...</math> tags or LaTeX math delimiters, as Delimiters selects.

Remarks

A display formula stands in a paragraph of its own, and a \\ right after it ends an empty line, as in LaTeX, where the paragraph resumes after a display; spaces around it vanish as LaTeX ignores them. An environment such as align reaches the formula whole, its & and \\ aligning the lines and its name deciding the numbering. A formula without a closing delimiter stays text.
public MathDelimiters Delimiters{ get; set }

Gets or sets the syntax formulas are read from.

public int Priority{ get }
public bool CanWrap{ get }
public string SourceToken{ get }
public string Identity{ get }
public string MarkupTriggers{ get }
public string TypingTriggers{ get }
public override void Reset()
public override int TryMatch()
public override string Apply()