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:
parent
c0b43c6a18
commit
f79968fdc2
2 changed files with 2 additions and 14 deletions
|
@ -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})";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue