MarkdownPipeline Class

This class is the Markdown pipeline build from a MarkdownPipelineBuilder.

An instance of MarkdownPipeline is immutable, thread-safe, and should be reused when parsing multiple inputs.

public sealed class MarkdownPipeline

Properties

NameDescription
ExtensionsThe read-only list of extensions used to build this pipeline.
MaximumNestingDepthGets the maximum nesting depth allowed for the Markdown syntax tree during parsing and rendering.
TrackTriviaTrue to parse trivia such as whitespace, extra heading characters and unescaped string values.

The read-only list of extensions used to build this pipeline.

public OrderedList<IMarkdownExtension> Extensions { get; }

MaximumNestingDepth

MarkdownPipeline.cs

Gets the maximum nesting depth allowed for the Markdown syntax tree during parsing and rendering.

public int MaximumNestingDepth { get; }

Property value

int

Remarks

The default value is 128. Raising this value allows deeper documents but can increase parsing cost and rendering stack usage.

True to parse trivia such as whitespace, extra heading characters and unescaped string values.

public bool TrackTrivia { get; }

Property value

bool

Methods

NameDescription
Setup(IMarkdownRenderer)Allows to setup a IMarkdownRenderer.

Setup(IMarkdownRenderer)

MarkdownPipeline.cs

Allows to setup a IMarkdownRenderer.

public void Setup(IMarkdownRenderer renderer)

Parameters

renderer IMarkdownRenderer
The markdown renderer to setup