A single heading entry in TableOfContents.
public sealed record TocEntry : IEquatable<TocEntry>
kind:method, kind:property, kind:ctor. Press Esc to clear.ChildrenNested headings at a deeper level, up to the next heading at the same or shallower level. Empty (never null) if this entry has no nested headings.LevelThe heading level (1-6).SlugThe anchor id also registered for in-document navigation. Pass to ScrollToAnchor(String) to scroll to this heading.TextThe heading's plain text.BuildTree(IReadOnlyList<(Int32 Level, String Text, String Slug)<Int32, String, String>>, Int32)Builds a nested heading tree from a flat, document-ordered sequence of headings. Headings deeper than maxDepth are dropped entirely, along with their descendants (never promoted to a shallower level). Each remaining heading nests under the nearest preceding heading with a strictly shallower level; if none exists — including when levels skip, e.g. an H3 with no preceding H1 or H2 — it becomes a root entry.