Skip to content

Commit

Permalink
Trim result because it sometimes has a newline
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek committed Jan 23, 2025
1 parent 15ee32d commit 101b0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elastic.Markdown/Helpers/Markdown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public static string StripMarkdown(string markdown)
{
using var writer = new StringWriter();
Markdig.Markdown.ToPlainText(markdown, writer);
return writer.ToString();
return writer.ToString().TrimEnd('\n');
}
}

0 comments on commit 101b0be

Please sign in to comment.