Descendants(MarkdownObject) Method

Definition

Namespace Markdig.Syntax
Assembly Markdig.dll

Iterates 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

markdownObject
MarkdownObject

The markdown object.

Returns

IEnumerable<MarkdownObject>
An iteration over the descendant elements