2024-05-16 18:34:26 +03:00
|
|
|
|
namespace TeamOctolings.Octobot.Extensions;
|
2023-12-04 17:09:47 +03:00
|
|
|
|
|
|
|
|
|
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}";
|
|
|
|
|
}
|
2024-07-03 20:12:32 +03:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Formats a string to use Markdown Quote formatting.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="text">The input text to format.</param>
|
|
|
|
|
/// <returns>
|
|
|
|
|
/// A markdown-formatted quote string.
|
|
|
|
|
/// </returns>
|
|
|
|
|
public static string Quote(string text)
|
|
|
|
|
{
|
|
|
|
|
return $"> {text}";
|
|
|
|
|
}
|
2023-12-04 17:09:47 +03:00
|
|
|
|
}
|