From 9b3d920819387ef5846e619fb6055e4d31c25618 Mon Sep 17 00:00:00 2001 From: YouKnow Date: Wed, 4 Sep 2024 05:04:37 +0330 Subject: [PATCH] added '\' to markdown escape characters --- crates/teloxide/src/utils/markdown.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/teloxide/src/utils/markdown.rs b/crates/teloxide/src/utils/markdown.rs index 68de26a1..303622fa 100644 --- a/crates/teloxide/src/utils/markdown.rs +++ b/crates/teloxide/src/utils/markdown.rs @@ -4,8 +4,8 @@ use teloxide_core::types::{User, UserId}; -pub(super) const ESCAPE_CHARS: [char; 18] = - ['_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']; +pub(super) const ESCAPE_CHARS: [char; 19] = + ['\\', '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']; /// Applies the bold font style to the string. ///