From 41d05aa540c310b77ac0729b4e94e3c2863d43d9 Mon Sep 17 00:00:00 2001 From: Julynx Date: Mon, 2 Feb 2026 23:32:31 +0100 Subject: [PATCH] Fix newline handling in Latex double match (issue 674) --- lib/markdown2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/markdown2.py b/lib/markdown2.py index 330ddea8..5381fe4a 100755 --- a/lib/markdown2.py +++ b/lib/markdown2.py @@ -3620,7 +3620,7 @@ def _convert_single_match(self, match): return self.converter.convert(match.group(1)) def _convert_double_match(self, match): - return self.converter.convert(match.group(1).replace(r"\n", ''), display="block") + return self.converter.convert(match.group(1).replace("\n", ''), display="block") def code_placeholder(self, match): placeholder = f""