Descendants(ContainerBlock) Method

Definition

Namespace Markdig.Syntax
Assembly Markdig.dll

Iterates 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 : Block

Type parameters

T
Type to use for filtering the descendants

Parameters

block
ContainerBlock

The markdown object.

Returns

IEnumerable<T>
An iteration over the descendant elements