Unigram icon indicating copy to clipboard operation
Unigram copied to clipboard

Improve markdown support when sending messages

Open FrayxRulez opened this issue 9 years ago • 2 comments

I'm a lover of **, __ and ``` to format text, but end users might prefer to use some context menu and to see a live preview of what's he's doing. Also we need rich text editing already to support mentions without username.

To do so we need to complete some steps first:

  • [x] parsing RTF in a decent and reliable way
  • [x] parsing Markdown in a decent and reliable way
  • [x] improve the RichEditBox experience

Entities I'd like to parse from markdown are:

  • **bold**
  • __italic__
  • code
  • pre formatted code
  • [urls](https://.../)
  • @[mentions](1234567890)

Improving RichEditBox experience would mostly consist in implementing a custom context menu with bold italic and so on (only when there's some text selected) and to prevent the typical auto-expand behavior for text formattation: if I make the selected text bold and then I got space the text should't be bold anymore

FrayxRulez avatar Oct 30 '17 17:10 FrayxRulez

Totally agree, actual "BubbleTextBox" that extends RichEditBox has a lot of bugs/poor performance and that's critical for a chat client

thunderluca avatar Oct 30 '17 17:10 thunderluca

This has been fixed by the following commits: https://github.com/UnigramDev/Unigram/commit/8c1d211ff2f7d48c6ebc974d311f16597b41ba4e https://github.com/UnigramDev/Unigram/commit/c0bb3e39c61c8bcae8aa8c47b40899de9d5b2282 https://github.com/UnigramDev/Unigram/commit/1a934d5ff47999afa9393aa96053621328db16fa

FrayxRulez avatar Oct 02 '18 11:10 FrayxRulez