From c9c72258d47f15bcb369d69f102c7baa8d634746 Mon Sep 17 00:00:00 2001 From: Laurent Ellerbach Date: Fri, 8 Dec 2023 15:06:51 +0100 Subject: [PATCH] fix bug #44 --- src/DocLanguageTranslator/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DocLanguageTranslator/Program.cs b/src/DocLanguageTranslator/Program.cs index 805b7e5..c807dc2 100644 --- a/src/DocLanguageTranslator/Program.cs +++ b/src/DocLanguageTranslator/Program.cs @@ -201,7 +201,7 @@ private static void TranslateMarkdown(string inputFile, string inputLanguage, st if (links.Count > 0) { // We know that a space will be inserted sometimes - res = res.Replace("] (", "](").Replace("! [", "!["); + res = res.Replace("] (", "](").Replace("! [", "![").Replace("[! ", "[!"); foreach (var link in links) { int firstLink = res.IndexOf("]()");