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
MarkdownInlineSyntaxMarkdownGenericAttributesSyntax
Properties
| Name | Description |
|---|---|
| Classes | Gets the classes. |
| Id | Gets the id, or null when there is none. |
| Properties | Gets the other attributes, whose value is null when they are written without one, such as {hidden}. |
| Target | Gets the node whose element the attributes are for, or null when they are for none. |
Properties
MarkdownGenericAttributesSyntax.csGets the other attributes, whose value is null when they are written without one, such as {hidden}.
public ImmutableArray<KeyValuePair<string, string?>> Properties { get; }Property value
Gets the node whose element the attributes are for, or null when they are for none.
public MarkdownSyntaxNode? Target { get; }Property value
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
| Name | Description |
|---|---|
| Accept(MarkdownSyntaxVisitor) | |
| Accept<TResult>(MarkdownSyntaxVisitor<TResult>) |
Accept overloads
Accept(MarkdownSyntaxVisitor)
MarkdownGenericAttributesSyntax.cspublic override void Accept(MarkdownSyntaxVisitor visitor)Parameters
visitorMarkdownSyntaxVisitor
No documentation is available.
Accept<TResult>(MarkdownSyntaxVisitor<TResult>)
MarkdownGenericAttributesSyntax.cspublic override TResult? Accept<TResult>(MarkdownSyntaxVisitor<TResult> visitor)No documentation is available.