@@ -133,46 +133,35 @@ private static MarkdownPipeline MinimalPipeline
133133 // ReSharper disable once InconsistentNaming
134134 private static MarkdownPipeline ? PipelineCached ;
135135
136- /// <summary>
137- /// Creates a MarkdownPipelineBuilder configured with all standard MyST extensions.
138- /// This is the authoritative source for MyST pipeline configuration that can be extended by other components.
139- /// </summary>
140- public static MarkdownPipelineBuilder CreateBaseBuilder ( )
141- {
142- var builder = new MarkdownPipelineBuilder ( )
143- . UseInlineAnchors ( )
144- . UsePreciseSourceLocation ( )
145- . UseDiagnosticLinks ( )
146- . UseHeadingsWithSlugs ( )
147- . UseEmphasisExtras ( EmphasisExtraOptions . Default )
148- . UseInlineAppliesTo ( )
149- . UseInlineIcons ( )
150- . UseInlineKbd ( )
151- . UseSubstitution ( )
152- . UseComments ( )
153- . UseYamlFrontMatter ( )
154- . UseGridTables ( )
155- . UsePipeTables ( )
156- . UseDirectives ( )
157- . UseDefinitionLists ( )
158- . UseEnhancedCodeBlocks ( )
159- . UseHtmxLinkInlineRenderer ( )
160- . DisableHtml ( )
161- . UseWhiteSpaceNormalizer ( )
162- . UseHardBreaks ( ) ;
163- _ = builder . BlockParsers . TryRemove < IndentedCodeBlockParser > ( ) ;
164- return builder ;
165- }
166-
167136 public static MarkdownPipeline Pipeline
168137 {
169138 get
170139 {
171140 if ( PipelineCached is not null )
172141 return PipelineCached ;
173142
174- // Use the shared base builder to ensure consistency
175- var builder = CreateBaseBuilder ( ) ;
143+ var builder = new MarkdownPipelineBuilder ( )
144+ . UseInlineAnchors ( )
145+ . UsePreciseSourceLocation ( )
146+ . UseDiagnosticLinks ( )
147+ . UseHeadingsWithSlugs ( )
148+ . UseEmphasisExtras ( EmphasisExtraOptions . Default )
149+ . UseInlineAppliesTo ( )
150+ . UseInlineIcons ( )
151+ . UseInlineKbd ( )
152+ . UseSubstitution ( )
153+ . UseComments ( )
154+ . UseYamlFrontMatter ( )
155+ . UseGridTables ( )
156+ . UsePipeTables ( )
157+ . UseDirectives ( )
158+ . UseDefinitionLists ( )
159+ . UseEnhancedCodeBlocks ( )
160+ . UseHtmxLinkInlineRenderer ( )
161+ . DisableHtml ( )
162+ . UseWhiteSpaceNormalizer ( )
163+ . UseHardBreaks ( ) ;
164+ _ = builder . BlockParsers . TryRemove < IndentedCodeBlockParser > ( ) ;
176165 PipelineCached = builder . Build ( ) ;
177166 return PipelineCached ;
178167 }
0 commit comments