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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment