Richtext input field
Our current approach of using markdown for textinput and converting it to html has a few problems:
- You have to know that it exists and how exactly it works; try 3 apps and you'll get 5 different ways of doing
strikethrough. This is somewhat improved by the formatting menu we already have - There's no immediate feedback about how the message will look, increasing the likelihood of mistakes
Instead, we could create a rich text input field with buttons for formatting, like what you'd find on gitlab:
We can implement this using the QTextDocument that is backing the TextArea. We'd then only need a function that converts the document's content to HTML.
Ideally, this component is reusable between different apps and would be put e.g. in KTextAddons