1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-05 13:36:30 +03:00

/about: Use Markdown.Hyperlink instead of custom extension (#229)

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2023-12-19 13:32:11 +03:00 committed by GitHub
parent c0b43c6a18
commit f79968fdc2
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions

View file

@ -13,17 +13,4 @@ public static class MarkdownExtensions
{
return $"- {text}";
}
/// <summary>
/// Formats a string to use Markdown Hyperlink formatting.
/// </summary>
/// <param name="text">The input text to format.</param>
/// <param name="url">The URL to use in formatting.</param>
/// <returns>
/// A markdown-formatted Hyperlink string.
/// </returns>
public static string Hyperlink(string text, string url)
{
return $"[{text}]({url})";
}
}