mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-02-25 00:12:38 +03:00
In this PR, I redesigned the reminder-related commands and they will now have a quote block instead of a inline code block (to avoid some visual bugs). Except /listremind. It just has the inline code block removed. 
28 lines
742 B
C#
28 lines
742 B
C#
namespace TeamOctolings.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}";
|
|
}
|
|
|
|
/// <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}";
|
|
}
|
|
}
|