diff --git a/src/Modules/TextFileHandler.cs b/src/Modules/TextFileHandler.cs
index 3e1d7d2..658d100 100644
--- a/src/Modules/TextFileHandler.cs
+++ b/src/Modules/TextFileHandler.cs
@@ -259,7 +259,16 @@ internal static class TextFileHandler
private static string ProcessLinks(string text)
{
return Regex.Replace(text, @"\[([^\]]+)\]\(([^)]+)\)",
- " $1 ");
+ match =>
+ {
+ string name = match.Groups[1].Value;
+ string link = match.Groups[2].Value;
+
+ if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(link))
+ return match.Value;
+
+ return $" {name} ";
+ });
}
///