mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-13 05:45:31 +00:00
[PR #387] Add missing Descendants<T> api #980
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/xoofx/markdig/pull/387
State: closed
Merged: Yes
We were missing a few conveniance overloads (#63)
Since these can't coexist in C#, I added one
where T : MarkdownObjectthat then calls the appropriate internal overload for optimal traversal (has the added bonus of not allocating when it's obvious there can't be any descendants).Added tests for all the different overloads to make sure the traversal logic is correct.