mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-01-31 09:09:00 +03:00
Macintxsh II
18cdc63883
In this PR, I have added StringBuilder extensions to avoid `.Append` reuse such as `.Append("- ").AppendLine()` Closes #205 --------- Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
16 lines
406 B
C#
16 lines
406 B
C#
namespace Octobot.Extensions;
|
|
|
|
public static class MarkdownExtensions
|
|
{
|
|
/// <summary>
|
|
/// Formats a string to use Markdown Bullet formatting.
|
|
/// </summary>
|
|
/// <param name="text">The input text to format.</param>
|
|
/// <returns>
|
|
/// A markdown-formatted bullet string.
|
|
/// </returns>
|
|
public static string BulletPoint(string text)
|
|
{
|
|
return $"- {text}";
|
|
}
|
|
}
|