MarkdownObjectExtensions Class
Methods
| Name | Description |
|---|---|
| Descendants(MarkdownObject) | Iterates over the descendant elements for the specified markdown element, including Block and Inline. The descendant elements are returned in DFS-like order. |
| Descendants<T>(ContainerBlock) | Iterates over the descendant elements for the specified markdown Block element and filters by the type T. |
| Descendants<T>(ContainerInline) | Iterates over the descendant elements for the specified markdown Inline element and filters by the type T. |
| Descendants<T>(MarkdownObject) | Iterates over the descendant elements for the specified markdown element, including Block and Inline and filters by the type T. The descendant elements are returned in DFS-like order. |
Descendants overloads
Descendants(MarkdownObject)
MarkdownObjectExtensions.csIterates over the descendant elements for the specified markdown element, including Block and Inline.
The descendant elements are returned in DFS-like order.
public static IEnumerable<MarkdownObject> Descendants(this MarkdownObject markdownObject)Parameters
markdownObjectMarkdownObject- The markdown object.
Returns
IEnumerable<MarkdownObject> An iteration over the descendant elements
Descendants<T>(ContainerBlock)
MarkdownObjectExtensions.csIterates over the descendant elements for the specified markdown Block element and filters by the type T.
public static IEnumerable<T> Descendants<T>(this ContainerBlock block) where T : BlockType parameters
T- Type to use for filtering the descendants
Parameters
blockContainerBlock- The markdown object.
Returns
IEnumerable<T> An iteration over the descendant elements
Descendants<T>(ContainerInline)
MarkdownObjectExtensions.csIterates over the descendant elements for the specified markdown Inline element and filters by the type T.
public static IEnumerable<T> Descendants<T>(this ContainerInline inline) where T : InlineType parameters
T- Type to use for filtering the descendants
Parameters
inlineContainerInline- The inline markdown object.
Returns
IEnumerable<T> An iteration over the descendant elements
Descendants<T>(MarkdownObject)
MarkdownObjectExtensions.csIterates over the descendant elements for the specified markdown element, including Block and Inline and filters by the type T.
The descendant elements are returned in DFS-like order.
public static IEnumerable<T> Descendants<T>(this MarkdownObject markdownObject) where T : MarkdownObjectType parameters
T- Type to use for filtering the descendants
Parameters
markdownObjectMarkdownObject- The markdown object.
Returns
IEnumerable<T> An iteration over the descendant elements