Skip to content
Snippets Groups Projects
Commit 0000f053 authored by Fadi Shehadeh's avatar Fadi Shehadeh Committed by Fadi Shehadeh
Browse files

chatview: interpret messages as markdown instead of html

GitLab: #728

Change-Id: If6896c2de4ed56c6f0351057e97fd9f2224dfd6e
parent dd0dc87a
Branches
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ SBSMessageBase { ...@@ -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 { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment