Fix Yaml Links

This commit is contained in:
D1GQ committed 2026-06-25 23:15:27 -05:00
1 parent 023a375578
commit 890e7ec026
1 file changed
+10 -1
+10 -1
View File
@@ -259,7 +259,16 @@ internal static class TextFileHandler
private static string ProcessLinks(string text)
{
return Regex.Replace(text, @"\[([^\]]+)\]\(([^)]+)\)",
"<link=\"$2\"> <b>$1</b></link> ");
match =>
{
string name = match.Groups[1].Value;
string link = match.Groups[2].Value;
if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(link))
return match.Value;
return $"<link=\"{link}\"> <b>{name}</b></link> ";
});
}
/// <summary>