Escape characters when using MarkdownV2
butvinm opened this issue · comments
Mihail Butvin commented
Some characters in the message text should be escaped when using the MarkdownV2
parse mode; otherwise, an error occurs.
You can refer to the docs for more information.
Mirco Ianese commented
I argue that the text given as input to the library should already be sanitized, otherwise the library cannot know reliably if the character is an intended Markdown
symbol or not.
Mihail Butvin commented
Ok, I understand implementation troubles, but manual escaping still looks very error-prone and inconvenient.
I can contribute markdown utils, such as aiogram provides, if you consider that essential.