Skip to content

Commit 82e72e0

Browse files
committed
chore: remove code that outpu markdown link syntax
1 parent 0f8e811 commit 82e72e0

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

‎src/BenchmarkDotNet/Helpers/ConsoleHelper.cs‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal static class ConsoleHelper
1818

1919
/// <summary>
2020
/// Write clickable link to console.
21-
/// If console doesn't support OSC 8 hyperlinks. It writes plain link with markdown syntax.
21+
/// If console doesn't support OSC 8 hyperlinks. It writes plain link.
2222
/// </summary>
2323
public static void WriteLineAsClickableLink(ILogger consoleLogger, string link, string? linkCaption = null, LogKind logKind = LogKind.Info, string prefixText = "", string suffixText = "")
2424
{
@@ -40,7 +40,7 @@ public static void WriteLineAsClickableLink(ILogger consoleLogger, string link,
4040

4141
/// <summary>
4242
/// Write clickable link to console.
43-
/// If console doesn't support OSC 8 hyperlinks. It writes plain link with markdown syntax.
43+
/// If console doesn't support OSC 8 hyperlinks. It writes plain link.
4444
/// </summary>
4545
public static void WriteAsClickableLink(ILogger consoleLogger, string link, string? linkCaption = null, LogKind logKind = LogKind.Info)
4646
{
@@ -54,14 +54,7 @@ public static void WriteAsClickableLink(ILogger consoleLogger, string link, stri
5454
return;
5555
}
5656

57-
// If link caption is specified. Write link as plain text with markdown link syntax.
58-
if (!string.IsNullOrEmpty(linkCaption))
59-
{
60-
consoleLogger.Write(logKind, $"[{linkCaption}]({link})");
61-
return;
62-
}
63-
64-
// Write link as plain text.
57+
// Write link as plain text. (linkCaption is ignored)
6558
consoleLogger.Write(logKind, link);
6659
}
6760

0 commit comments

Comments
 (0)