Table of Contents

Property MaxNestingDepth

Namespace
DocWright.Formats.Markdown
Assembly
DocWright.Formats.Markdown.dll

MaxNestingDepth

Gets or sets the maximum block-nesting depth. Exceeding it throws a ResourceLimitExceededException.

public int MaxNestingDepth { get; set; }

Property Value

int

Remarks

> nests block quotes and a list marker nests lists, both for one character per level, so a small file can demand arbitrary depth. The block parser is iterative, so the depth costs heap rather than stack; this limit is what turns a hostile file into an exception the caller can handle instead of an allocation the process cannot survive.

Exceptions

ArgumentOutOfRangeException

The value is not positive.