Gets or sets the maximum heading level included in TableOfContents. Headings deeper than this level, and their descendants, are excluded. Defaults to 6 (no limit).
public int TableOfContentsMaxDepth { get; set; }