From df5296af42b79bf4d831a012ff6452fded1ac1ab Mon Sep 17 00:00:00 2001 From: Julien Riou Date: Thu, 25 Mar 2021 10:39:11 +0100 Subject: [PATCH] Escape '=' to produce valid markdown (#1) Signed-off-by: Julien Riou --- notify-by-telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify-by-telegram.py b/notify-by-telegram.py index aac48ad..9d11874 100755 --- a/notify-by-telegram.py +++ b/notify-by-telegram.py @@ -73,7 +73,7 @@ def setup_logging(args): def markdown_escape(text): - for special_char in ['\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '#', '+', '-', '.', '!']: + for special_char in ['\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '#', '+', '-', '.', '!', '=']: text = text.replace(special_char, fr'\{special_char}') return text