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:
parent
dd0dc87a01
commit
0000f05395
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue