CodeInline Class

Represents a code span (Section 6.3 CommonMark specs)

public class CodeInline : LeafInline

See also

Inheritance
LeafInline CodeInline

Constructors

NameDescription
CodeInline(string)Initializes a new instance of the CodeInline class.

CodeInline(string)

CodeInline.cs

Initializes a new instance of the CodeInline class.

public CodeInline(string content)

Parameters

content string

Properties

NameDescription
ContentGets or sets the content of the span.
ContentSpanGets or sets the content span.
ContentWithTriviaGets or sets the content with trivia and whitespace. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
DelimiterGets or sets the delimiter character used by this code inline.
DelimiterCountGets or sets the amount of delimiter characters used

Gets or sets the content of the span.

public string Content { get; set; }

Property value

string

ContentSpan

CodeInline.cs

Gets or sets the content span.

public ReadOnlySpan<char> ContentSpan { get; }

Property value

ReadOnlySpan<char>

ContentWithTrivia

CodeInline.cs

Gets or sets the content with trivia and whitespace. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.

public StringSlice ContentWithTrivia { get; set; }

Property value

StringSlice

Delimiter

CodeInline.cs

Gets or sets the delimiter character used by this code inline.

public char Delimiter { get; set; }

Property value

char

DelimiterCount

CodeInline.cs

Gets or sets the amount of delimiter characters used

public int DelimiterCount { get; set; }

Property value

int