mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Added link detection in plain text (not available ootb in SwiftUI) and support for user, room, event and group identifiers + room aliases.
This commit is contained in:
@@ -49,7 +49,6 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
|
||||
DTDefaultFontName: defaultFont.fontName,
|
||||
DTDefaultFontSize: defaultFont.pointSize,
|
||||
DTDefaultTextColor: defaultColor,
|
||||
DTDefaultLinkDecoration: false,
|
||||
DTDefaultStyleSheet: DTCSSStylesheet(styleBlock: self.defaultCSS) as Any
|
||||
]
|
||||
|
||||
@@ -69,6 +68,8 @@ struct AttributedStringBuilder: AttributedStringBuilderProtocol {
|
||||
|
||||
nsAttributedString = AttributedStringBuilderUtils.removeMarkedBlockquotesArtifacts(nsAttributedString)
|
||||
|
||||
nsAttributedString = AttributedStringBuilderUtils.createLinks(nsAttributedString)
|
||||
|
||||
return try? AttributedString(nsAttributedString, including: \.elementX)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user