Class
HtmlCommentBlock
OfficeIMO.Markdown
Represents an HTML comment preserved as a top-level Markdown block.
Inheritance
- MarkdownObject
- MarkdownBlock
- HtmlCommentBlock
Constructors
public HtmlCommentBlock(string comment) #Initializes a new instance of the HtmlCommentBlock class.
Parameters
- comment string
- HTML comment content to preserve verbatim.
Inherited Methods
public void Accept(MarkdownVisitor visitor) #Inherited from MarkdownObject
Parameters
- visitor MarkdownVisitor
public IEnumerable<MarkdownObject> Ancestors() #Inherited from MarkdownObject
Returns
IEnumerable<MarkdownObject>public IEnumerable<MarkdownObject> AncestorsAndSelf() #Inherited from MarkdownObject
Returns
IEnumerable<MarkdownObject>public IEnumerable<TObject> DescendantObjectsOfType<TObject>() #Inherited from MarkdownObject
Type Parameters
- TObject
Returns
IEnumerable<TObject>public IEnumerable<MarkdownObject> Descendants() #Inherited from MarkdownObject
Returns
IEnumerable<MarkdownObject>Properties
public string Comment { get; } #Gets the raw HTML comment text, including the comment delimiters.
public MarkdownSourceSpan? OpeningMarkerSourceSpan { get; internal set; } #Source span for the opening <!-- marker when available.
public MarkdownSourceSpan? BodySourceSpan { get; internal set; } #Source span for the comment body when available.
public MarkdownSourceSpan? ClosingMarkerSourceSpan { get; internal set; } #Source span for the closing --> marker when available.
Inherited Properties
public MarkdownSourceSpan? SourceSpan { get; internal set; } #Inherited from MarkdownObject
public IReadOnlyList<MarkdownObject> ChildObjects { get; } #Inherited from MarkdownObject