Skip to content

Commit ec1f08e

Browse files
committed
Cleanup LLmMarkdownRenderer.cs
1 parent 41660dd commit ec1f08e

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/Elastic.Markdown/Myst/Renderers/LlmMarkdown/LlmMarkdownRenderer.cs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ namespace Elastic.Markdown.Myst.Renderers.LlmMarkdown;
1313
/// </summary>
1414
public class LlmMarkdownRenderer : TextRendererBase
1515
{
16-
/// <summary>
17-
/// BuildContext for accessing configuration like CanonicalBaseUrl for URL transformation
18-
/// </summary>
1916
public required BuildContext BuildContext { get; init; }
20-
2117
private bool _isAtLineStart = true;
2218

2319
/// <summary>
@@ -36,32 +32,23 @@ public void EnsureLine()
3632
/// </summary>
3733
public void EnsureBlockSpacing()
3834
{
39-
EnsureLine(); // Ensure we're at start of line
40-
Writer.WriteLine(); // Add one empty line
35+
EnsureLine();
36+
Writer.WriteLine();
4137
_isAtLineStart = true;
4238
}
4339

44-
/// <summary>
45-
/// Writes a line of text to the output
46-
/// </summary>
4740
public void WriteLine(string text = "")
4841
{
4942
Writer.WriteLine(text);
5043
_isAtLineStart = true;
5144
}
5245

53-
/// <summary>
54-
/// Writes text to the output (tracks line state for EnsureLine)
55-
/// </summary>
5646
public void Write(string text)
5747
{
5848
Writer.Write(text);
5949
_isAtLineStart = text.EndsWith(Environment.NewLine) || text.EndsWith('\n');
6050
}
6151

62-
/// <summary>
63-
/// Writes the content of a leaf inline element
64-
/// </summary>
6552
public void WriteLeafInline(LeafBlock leafBlock)
6653
{
6754
if (leafBlock.Inline != null)

0 commit comments

Comments
 (0)