MarkdownGenericAttributesSyntax Class

Generic attributes: {#id .class name=value}, which set the HTML attributes of the element of their MarkdownGenericAttributesSyntax.Target.

public sealed class MarkdownGenericAttributesSyntax : MarkdownInlineSyntax
Inheritance
MarkdownInlineSyntax MarkdownGenericAttributesSyntax

Properties

NameDescription
ClassesGets the classes.
IdGets the id, or null when there is none.
PropertiesGets the other attributes, whose value is null when they are written without one, such as {hidden}.
TargetGets the node whose element the attributes are for, or null when they are for none.

Gets the classes.

public ImmutableArray<string> Classes { get; }

Gets the id, or null when there is none.

public string? Id { get; }

Property value

string?

Gets the other attributes, whose value is null when they are written without one, such as {hidden}.

public ImmutableArray<KeyValuePair<string, string?>> Properties { get; }

Gets the node whose element the attributes are for, or null when they are for none.

public MarkdownSyntaxNode? Target { get; }

Property value

MarkdownSyntaxNode?

Remarks

As in Markdig: attributes after an inline that is not text, such as a link, a code span or an emphasis, are for it; attributes after text are for the block. The attributes of the first line of a heading or of a fenced block are for the block. A paragraph of attributes only gives its last ones to the next block, when there is one. Attributes after a line break are for none, except in a heading, whose line breaks Markdig reads as text.

Methods

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

Accept overloads

Accept(MarkdownSyntaxVisitor)

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

No documentation is available.

Accept<TResult>(MarkdownSyntaxVisitor<TResult>)

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

TResult?

No documentation is available.