tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

There is no way to enclose backticks codeblock with telegram backtics

Open gwpl opened this issue 1 year ago • 2 comments

Steps to reproduce

Try to send as codeblock, a codeblock with backticks that surround blockcode by default. , it will confuse telegram where codeblocks start and end.

Expected behaviour

There should be way to send any possible content inside codeblock.

In Markdown it's solved by surrounding codeblock section with amount of backticks that are not inside codeblock, effectively signaling parser on beginning of codeblock, with what closing section is.

Actual behaviour

Currently it seems unsupported, therefore impossible to contain certain sequences of backticks inside codeblock.

More examples

  • #28218

Operating system

ArchLinux

Version of Telegram Desktop

5.5.4

Installation source

Static binary from official website

Crash ID

No response

Logs

No response

gwpl avatar Oct 13 '24 17:10 gwpl

update your telegram version before reporting bugs.

Aokromes avatar Oct 13 '24 17:10 Aokromes

You can write your block with backticks and everything and use wysiwyg ctrl+shift+m to convert this whole selected block to a codeblock, backticks would be sent inside just fine.

john-preston avatar Oct 14 '24 07:10 john-preston

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Oct 28 '24 00:10 github-actions[bot]