Make single newlines cause a <br> by default

This should match what people expect from a chat application much
better. The biggest reason not to do this, is because some people might
paste markdown documents. For those people there is now a /cmark
command, which disables most of our extensions to cmark, including the
newline behaviour. There is a long discussion on the Fediverse and on
Github linked below.

Mastodon https://fosstodon.org/@deepbluev7/109771668066978726
fixes #757
This commit is contained in:
Nicolas Werner 2023-01-31 18:22:12 +01:00
parent 9f529075f0
commit 0c3d46795b
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
8 changed files with 48 additions and 15 deletions

View file

@ -18,11 +18,12 @@ class FetchUsersFromDirectoryJob final : public QObject
Q_OBJECT
public:
explicit FetchUsersFromDirectoryJob(QObject *p = nullptr)
: QObject(p)
: QObject(p)
{
}
signals:
void fetchedSearchResults(std::vector<mtx::responses::User> results, const std::string &searchTerm);
void
fetchedSearchResults(std::vector<mtx::responses::User> results, const std::string &searchTerm);
};
class UserDirectoryModel : public QAbstractListModel
{
@ -65,5 +66,6 @@ public slots:
bool searchingUsers() const { return searchingUsers_; }
private slots:
void displaySearchResults(std::vector<mtx::responses::User> results, const std::string &searchTerm);
void
displaySearchResults(std::vector<mtx::responses::User> results, const std::string &searchTerm);
};