parent
9ab1dc253e
commit
2d678bdcf6
4 changed files with 17 additions and 4 deletions
|
|
@ -7,6 +7,7 @@ import im.nheko 1.0
|
|||
|
||||
MatrixText {
|
||||
property string formatted: model.data.formattedBody
|
||||
property string copyText: selectedText ? getText(selectionStart, selectionEnd) : model.data.body
|
||||
|
||||
text: "<style type=\"text/css\">a { color:" + colors.link + ";}\ncode { background-color: " + colors.alternateBase + ";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap; background-color: " + colors.alternateBase + "'>")
|
||||
width: parent ? parent.width : undefined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue