We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9ba320 commit 52702d5Copy full SHA for 52702d5
src/Elastic.Markdown/IO/MarkdownFile.cs
@@ -281,6 +281,7 @@ public static List<PageTocItem> GetAnchors(
281
.Descendants<HeadingBlock>()
282
.Where(block => block is { Level: >= 2 })
283
.Select(h => (h.GetData("header") as string, h.GetData("anchor") as string, h.Level))
284
+ .Where(h => h.Item1 is not null)
285
.Select(h =>
286
{
287
var header = h.Item1!.StripMarkdown();
0 commit comments