d99kris / nchat

Terminal-based Telegram / WhatsApp client for Linux and macOS
MIT License
538 stars 41 forks source link

Links containing double underscores are corrupted #105

Closed d99kris closed 1 year ago

d99kris commented 1 year ago

Description: Double underscores in URLs get displayed as single underscore by nchat.

How to reproduce it: Send a message with the following content (using any client, ex. nchat or mobile app):

https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1text_parse_mode_markdown.html

Then try visit the link in nchat (ctrl-w) or copy & paste it from nchat to a browser. Result: Any __ instances in the URL have been changed to _.

Environment: