UseSelfPipeline(MarkdownPipelineBuilder, String, String?) Method

Definition

Namespace Markdig
Assembly Markdig.dll

Uses the self pipeline extension that will detect the pipeline to use from the markdown input that contains a special tag. See SelfPipelineExtension

public static MarkdownPipelineBuilder UseSelfPipeline(this MarkdownPipelineBuilder pipeline, string defaultTag = "markdig", string? defaultExtensions = null)

Parameters

pipeline
MarkdownPipelineBuilder

The pipeline.

defaultTag
String

The default tag to use to match the self pipeline configuration. By default, DefaultTag, meaning that the HTML tag will be <--markdig:extensions-->

defaultExtensions
String

The default extensions to configure if no pipeline setup was found from the Markdown document

Returns

MarkdownPipelineBuilder
The modified pipeline