Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape characters when using MarkdownV2 #352

Open
butvinm opened this issue Jan 6, 2024 · 2 comments
Open

Escape characters when using MarkdownV2 #352

butvinm opened this issue Jan 6, 2024 · 2 comments

Comments

@butvinm
Copy link

butvinm commented Jan 6, 2024

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.

@mircoianese
Copy link
Collaborator

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.

@butvinm
Copy link
Author

butvinm commented Jan 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants