Skip to content

Commit 0409a33

Browse files
committed
Revert changes to MarkdownParser.cs
1 parent ec1f08e commit 0409a33

File tree

2 files changed

+22
-39
lines changed

2 files changed

+22
-39
lines changed

src/Elastic.Markdown/Exporters/LlmMarkdownExporter.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,7 @@ private string CreateLlmContentWithMetadata(MarkdownExportFileContext context, s
149149
}
150150
}
151151

152-
/// <summary>
153-
/// Extension methods for easy integration with existing build configuration
154-
/// </summary>
155152
public static class LlmMarkdownExporterExtensions
156153
{
157-
/// <summary>
158-
/// Adds LLM markdown export to the documentation generator with consistent rendering settings
159-
/// </summary>
160154
public static void AddLlmMarkdownExport(this List<IMarkdownExporter> exporters) => exporters.Add(new LlmMarkdownExporter());
161155
}

src/Elastic.Markdown/Myst/MarkdownParser.cs

Lines changed: 22 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)