Tdesktop: ***** becomes *

Created on 26 Jul 2017  Â·  7Comments  Â·  Source: telegramdesktop/tdesktop

Steps to reproduce

  1. Write on any conversation (5 times "")
  2. Send it
  3. You will see just one *

Expected behaviour

Tell us what should happen
You should see *

Actual behaviour

Tell us what happens instead
You see *

Configuration

Operating system:
OsX
Version of Telegram Desktop:
1.1.15
Used theme:
dark

Logs:
Insert logs here (if necessary)


duplicate

Most helpful comment

I guess that's because of the markdown feature :thinking:

All 7 comments

Yeah that's true.
the same goes for _ (underline)

and also seven of ` (backtics) will be a single on

I guess that's because of the markdown feature :thinking:

yes lol

Yeah, there's no way to escape formatting characters in the official clients as far as I know. In the bot API, single * and _ are used and you can escape them with a backslash (\). You can use @bold in inline mode with the "Custom Markdown" option. Note that inline bots' responses are limited to 512 characters.

There's another caveat: you can't escape triple backticks as far as I can tell. If you need an even amount of triple backticks inside monospace text, you can use @bold with the "Fixedsys" option. But that won't work for an odd amount. Bot API allows HTML which is straightforward, so you could use a HTML formatting bot and escape special formatting characters as HTML entities (I don't know any existing ones off the top of my had).

This is because Telegram Desktop is using ** (and __) as delimiters when entering bold and italics text as @AliSawari said (markdown feature). So it's not actually a bug, ***** is just ** around * → *.

2683

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mindstormer619 picture Mindstormer619  Â·  3Comments

Yanrishatum picture Yanrishatum  Â·  3Comments

ArmeF97 picture ArmeF97  Â·  3Comments

matteotumiati picture matteotumiati  Â·  3Comments

TotalKrill picture TotalKrill  Â·  3Comments