Docsv3.20.2
Back to API Reference
Class

LatexCommandRule

sealed
Inherits:ParseRule

Matches one LaTeX text command, \name{content}, for the modifier it is paired with: \textbf with a bold modifier, \emph with an italic one, \textcolor with a colour modifier.

Remarks

With TakesParameter the command's first brace group is the modifier's parameter, as in \textcolor{red}{content}; an [HTML] model before it turns a hex value into #value. A command whose content group never closes stays text.
public string Command{ get; set }

Gets or sets the command name without the backslash.

public bool TakesParameter{ get; set }

Gets or sets whether the first brace group is the modifier's parameter, as in \textcolor{red}{text}.

public int Priority{ get }
public bool CanWrap{ get }
public string SourceToken{ get }
public string Identity{ get }
public string MarkupTriggers{ get }
public string TypingTriggers{ get }
[ctor]public LatexCommandRule()
[ctor]public LatexCommandRule()
public override string ToString()
public override int TryMatch()
public override string Apply()