1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-12 19:45:23 +02:00

chatview: interpret messages as markdown instead of html

GitLab: #728

Change-Id: If6896c2de4ed56c6f0351057e97fd9f2224dfd6e
This commit is contained in:
Fadi SHEHADEH 2022-05-06 13:56:10 -04:00 committed by Fadi Shehadeh
parent dd0dc87a01
commit 0000f05395

View file

@ -42,7 +42,7 @@ SBSMessageBase {
TextEdit {
padding: 10
anchors.right: isOutgoing ? parent.right : undefined
text: '<span style="white-space: pre-wrap">' + Body + '</span>'
text: Body
width: {
if (extraContent.active)
Math.max(extraContent.width,
@ -57,7 +57,7 @@ SBSMessageBase {
font.pointSize: 11
font.hintingPreference: Font.PreferNoHinting
renderType: Text.NativeRendering
textFormat: TextEdit.RichText
textFormat: Text.MarkdownText
onLinkHovered: root.hoveredLink = hoveredLink
onLinkActivated: Qt.openUrlExternally(hoveredLink)
readOnly: true