This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy at the same URL with .md appended. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

MarkdownPipelineFactory Pennington.Markdown

Creates a configured Markdig MarkdownPipeline.

Methods

CreateDefault

#
public static MarkdownPipeline CreateDefault()

Creates a basic Markdig pipeline with advanced extensions and YAML front matter.

Returns

MarkdownPipeline

CreateWithExtensions

#
public static MarkdownPipeline CreateWithExtensions(IServiceProvider serviceProvider, CodeBlockRenderingService renderingService, Func<CodeHighlightRenderOptions> codeOptions = null, Func<TabbedCodeBlockRenderOptions> tabOptions = null, Action<MarkdownPipelineBuilder, IServiceProvider> configure = null)

Creates a pipeline with syntax highlighting, tabbed code blocks, custom alerts, and Mdazor component rendering. The optional configure hook runs after built-in extensions so consumers can add their own.

Parameters

serviceProvider IServiceProvider
renderingService CodeBlockRenderingService
codeOptions Func<CodeHighlightRenderOptions>
tabOptions Func<TabbedCodeBlockRenderOptions>
configure Action<MarkdownPipelineBuilder, IServiceProvider>

Returns

MarkdownPipeline

Pennington.Markdown.MarkdownPipelineFactory

namespace Pennington.Markdown;

/// Creates a configured Markdig MarkdownPipeline.
public class MarkdownPipelineFactory
{
    /// Creates a basic Markdig pipeline with advanced extensions and YAML front matter.
    
public static MarkdownPipeline CreateDefault()
; /// Creates a pipeline with syntax highlighting, tabbed code blocks, custom alerts, and Mdazor component rendering. The optional configure hook runs after built-in extensions so consumers can add their own.
public static MarkdownPipeline CreateWithExtensions(IServiceProvider serviceProvider, CodeBlockRenderingService renderingService, Func<CodeHighlightRenderOptions> codeOptions = null, Func<TabbedCodeBlockRenderOptions> tabOptions = null, Action<MarkdownPipelineBuilder, IServiceProvider> configure = null)
; }