From 890e7ec026f150d6295c0581b774ce5beaed35bb Mon Sep 17 00:00:00 2001 From: D1GQ Date: Thu, 25 Jun 2026 23:15:27 -0500 Subject: [PATCH] Fix Yaml Links --- src/Modules/TextFileHandler.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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} "; + }); } ///