diff --git a/src/libneochat/chattextitemhelper.cpp b/src/libneochat/chattextitemhelper.cpp index d8e3d61f3..8665ee4c0 100644 --- a/src/libneochat/chattextitemhelper.cpp +++ b/src/libneochat/chattextitemhelper.cpp @@ -326,7 +326,7 @@ void ChatTextItemHelper::insertFragment(const QTextDocumentFragment fragment, In text = trim(text); cursor.insertText(text); } else { - cursor.insertMarkdown(trim(fragment.toMarkdown())); + cursor.insertFragment(fragment); } if (keepPosition) { cursor.setPosition(currentPosition);