mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-23 16:23:55 +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 {
|
TextEdit {
|
||||||
padding: 10
|
padding: 10
|
||||||
anchors.right: isOutgoing ? parent.right : undefined
|
anchors.right: isOutgoing ? parent.right : undefined
|
||||||
text: '<span style="white-space: pre-wrap">' + Body + '</span>'
|
text: Body
|
||||||
width: {
|
width: {
|
||||||
if (extraContent.active)
|
if (extraContent.active)
|
||||||
Math.max(extraContent.width,
|
Math.max(extraContent.width,
|
||||||
|
@ -57,7 +57,7 @@ SBSMessageBase {
|
||||||
font.pointSize: 11
|
font.pointSize: 11
|
||||||
font.hintingPreference: Font.PreferNoHinting
|
font.hintingPreference: Font.PreferNoHinting
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
textFormat: TextEdit.RichText
|
textFormat: Text.MarkdownText
|
||||||
onLinkHovered: root.hoveredLink = hoveredLink
|
onLinkHovered: root.hoveredLink = hoveredLink
|
||||||
onLinkActivated: Qt.openUrlExternally(hoveredLink)
|
onLinkActivated: Qt.openUrlExternally(hoveredLink)
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue