MarkdownFrontMatterSyntax Class

A YAML front matter at the start of the document, between --- and --- or ....

public sealed class MarkdownFrontMatterSyntax : MarkdownBlockSyntax
Inheritance
MarkdownBlockSyntax MarkdownFrontMatterSyntax

Properties

NameDescription
ClosingFenceTokenGets the --- or ... that closes the front matter.
LineTokensGets the tokens of the lines of the front matter, with their line endings.
OpeningFenceTokenGets the --- that opens the front matter.
YamlGets the YAML: the lines between the fences, each one ended by \n.

Gets the --- or ... that closes the front matter.

public SyntaxToken ClosingFenceToken { get; }

Property value

SyntaxToken

Gets the tokens of the lines of the front matter, with their line endings.

public ImmutableArray<SyntaxToken> LineTokens { get; }

Gets the --- that opens the front matter.

public SyntaxToken OpeningFenceToken { get; }

Property value

SyntaxToken

Gets the YAML: the lines between the fences, each one ended by \n.

public string Yaml { get; }

Property value

string

Methods

NameDescription
Accept(MarkdownSyntaxVisitor)
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
GetPlainText()

Accept overloads

Accept(MarkdownSyntaxVisitor)

MarkdownFrontMatterSyntax.cs
public override void Accept(MarkdownSyntaxVisitor visitor)
Parameters
visitor MarkdownSyntaxVisitor

No documentation is available.

Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

MarkdownFrontMatterSyntax.cs
public override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)
Type parameters
TResult
Parameters
visitor MarkdownSyntaxVisitor<TResult>
Returns

TResult?

No documentation is available.

public override string GetPlainText()

Returns

string

No documentation is available.