We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 764e19a commit 4d024c7Copy full SHA for 4d024c7
src/Elastic.Markdown/IO/MarkdownFile.cs
@@ -162,8 +162,8 @@ private void ReadDocumentInstructions(MarkdownDocument document)
162
}
163
164
var contents = document
165
- .Where(block => block is HeadingBlock { Level: >= 2 })
166
- .Cast<HeadingBlock>()
+ .Descendants<HeadingBlock>()
+ .Where(block => block is { Level: >= 2 })
167
.Select(h => (h.GetData("header") as string, h.GetData("anchor") as string))
168
.Select(h => new PageTocItem
169
{
0 commit comments