klint cleaning
This commit is contained in:
parent
6bd7257cf2
commit
2a4cdec020
@ -70,7 +70,8 @@ internal class LocalEchoEventFactory @Inject constructor(@UserId private val use
|
||||
|
||||
private fun createTextContent(text: CharSequence, autoMarkdown: Boolean): TextContent {
|
||||
if (autoMarkdown) {
|
||||
val source = transformPills(text,"[%2\$s](https://matrix.to/#/%1\$s)") ?: text.toString()
|
||||
val source = transformPills(text, "[%2\$s](https://matrix.to/#/%1\$s)")
|
||||
?: text.toString()
|
||||
val document = parser.parse(source)
|
||||
val htmlText = renderer.render(document)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user